Removed unnecessary Math.round() call
Result of the operation is always an integer so the call to Math.round() is redundant. Change-Id: I19fe01b0d71241012ad9f2b5f5c11fabf2b216f5 Signed-off-by: Eryk Szymanski <eryksz@gmail.com>
This commit is contained in:
@@ -329,7 +329,7 @@ public class ChangeTable2 extends NavigationTable<ChangeInfo> {
|
|||||||
int changedLines = c.insertions() + c.deletions();
|
int changedLines = c.insertions() + c.deletions();
|
||||||
int p = 100;
|
int p = 100;
|
||||||
if (changedLines < largeChangeSize) {
|
if (changedLines < largeChangeSize) {
|
||||||
p = Math.round(changedLines * 100 / largeChangeSize);
|
p = changedLines * 100 / largeChangeSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
int width = Math.max(2, 70 * p / 100);
|
int width = Math.max(2, 70 * p / 100);
|
||||||
|
Reference in New Issue
Block a user