浏览代码

[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 年前
父节点
当前提交
afebe7880d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 查看文件

@@ -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);

正在加载...
取消
保存