Browse Source

[errorprone] DirCacheEntry: make clear operator precedence

See https://errorprone.info/bugpattern/OperatorPrecedence

Change-Id: I96f2c844a7b3d9d5605122118d9420bde31ec2f0
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v5.9.0.202009080501-r
Matthias Sohn 3 years ago
parent
commit
50e81a52c0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java View File

@@ -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,

Loading…
Cancel
Save