2a107d74a1
Building with Bazel@HEAD: [1] is failing with this error message: FormatUtil.java:129: error: [MathRoundIntLong] Math.round(Integer) results in truncation | int p = Math.abs(Math.round(delta * 100 / size)); | ^ | (see https://errorprone.info/bugpattern/MathRoundIntLong) | Did you mean 'int p = Math.abs(Ints.saturatedCast(delta * 100 / size));'? To rectify, replace Math.round() with Ints.saturatedCast() and borrow this method from Guava library because Guava cannot be currently used in GWT client code. [1] https://github.com/bazelbuild/bazel/issues/5944 Change-Id: I1c88102d4d027796594fb7cdcde4f0ec4921d4ad |
||
---|---|---|
.. | ||
main/java | ||
test/java/com/google/gerrit/client/diff |