Add missing braces around if- for- and while-statements

Change-Id: Ib7d455426fa78ac803f9d5162466f52b973cf998
This commit is contained in:
David Pursehouse
2015-03-16 17:10:40 +09:00
parent 1abfd35d76
commit 5ddffa0060
35 changed files with 131 additions and 66 deletions

View File

@@ -68,8 +68,9 @@ public class EditList {
private int findCombinedEnd(final int i) {
int end = i + 1;
while (end < edits.size() && (combineA(end) || combineB(end)))
while (end < edits.size() && (combineA(end) || combineB(end))) {
end++;
}
return end - 1;
}

View File

@@ -130,10 +130,11 @@ public class SparseFileContent {
return size();
}
if (idx < cur.base)
if (idx < cur.base) {
high = mid;
else
} else {
low = mid + 1;
}
} while (low < high);
return size();
@@ -183,10 +184,11 @@ public class SparseFileContent {
currentRangeIdx = mid;
return cur.get(idx);
}
if (idx < cur.base)
if (idx < cur.base) {
high = mid;
else
} else {
low = mid + 1;
}
} while (low < high);
return null;
}