Browse Source

[findBugs] Prefer short-cut logic as it's more performant

Change-Id: I64577f8fd19ee0d2d407479cc70e521adc367f37
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v1.2.0.201112221803-r
Matthias Sohn 12 years ago
parent
commit
afebe7880d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java View File

@@ -688,7 +688,7 @@ final class DfsReader extends ObjectReader implements ObjectReuseAsIs {
for (;;) {
dstoff = block.inflate(inf, position, dstbuf, dstoff);

if (headerOnly & dstoff == dstbuf.length)
if (headerOnly && dstoff == dstbuf.length)
return dstoff;
if (inf.needsInput()) {
position += block.remaining(position);

Loading…
Cancel
Save