Add missing braces around if- for- and while-statements
Change-Id: Ib7d455426fa78ac803f9d5162466f52b973cf998
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user