summaryrefslogtreecommitdiffstats
path: root/LICENSE
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2020-05-22 07:49:49 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2020-06-01 18:56:32 -0400
commit3e2ec7e5e81a489a326d872aa0670119ff2c1152 (patch)
treef81c4dbd5bf8db0543810396a85eeb18516cf034 /LICENSE
parent55371c5f063370aeca85acab16f867734ff4226c (diff)
downloadjgit-3e2ec7e5e81a489a326d872aa0670119ff2c1152.tar.gz
jgit-3e2ec7e5e81a489a326d872aa0670119ff2c1152.zip
Fix BadComparable error flagged by error prone
Running recent error prone version complaining on that code: LfsPointer.java:171: error: [BadComparable] Possible sign flip from narrowing conversion return (int) (getSize() - o.getSize()); ^ (see https://errorprone.info/bugpattern/BadComparable) Did you mean 'return Long.compare(getSize(), o.getSize());'? Bug: 562756 Change-Id: I0522f1025319a9290c448a064fbafdb4b16d1d59 Signed-off-by: David Ostrovsky <david@ostrovsky.org>
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions