checkstyle/pmd suggested corrections

This commit is contained in:
Jeremy Long
2017-01-21 08:47:52 -05:00
parent 92519ae955
commit a9af15f6f8
10 changed files with 12 additions and 23 deletions

View File

@@ -68,7 +68,7 @@ public final class Checksum {
ch = fis.getChannel();
final ByteBuffer buf = ByteBuffer.allocateDirect(8192);
int b = ch.read(buf);
while ((b != -1) && (b != 0)) {
while (b != -1 && b != 0) {
buf.flip();
final byte[] bytes = new byte[b];
buf.get(bytes);