| commit | 50e81a52c0df9fad9aa795079252f30bd2506836 | [log] [tgz] |
|---|---|---|
| author | Matthias Sohn <matthias.sohn@sap.com> | Mon Aug 31 02:22:37 2020 +0200 |
| committer | Matthias Sohn <matthias.sohn@sap.com> | Tue Sep 01 17:51:45 2020 +0200 |
| tree | 1e81e9566606ab4e2f9b578f3341e693b3b2a115 | |
| parent | 1d95f9cb8f669b162bb8ee6492100f646bef3480 [diff] |
[errorprone] DirCacheEntry: make clear operator precedence See https://errorprone.info/bugpattern/OperatorPrecedence Change-Id: I96f2c844a7b3d9d5605122118d9420bde31ec2f0 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java index e7d62c7..dcb8482 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java
@@ -149,7 +149,7 @@ public class DirCacheEntry { toRemove = (toRemove << 7) | (b & 0x7F); } if (toRemove < 0 - || previous != null && toRemove > previous.path.length) { + || (previous != null && toRemove > previous.path.length)) { if (previous == null) { throw new IOException(MessageFormat.format( JGitText.get().DIRCCorruptLengthFirst,