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

Change-Id: I64577f8fd19ee0d2d407479cc70e521adc367f37
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2011-11-16 20:54:40 +01:00
parent e7ec5e1473
commit afebe7880d
1 changed files with 1 additions and 1 deletions

View File

@ -688,7 +688,7 @@ int inflate(DfsPackFile pack, long position, byte[] dstbuf,
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);