[DS-707] Empty while statement

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5657 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Graham Triggs
2010-10-26 19:19:14 +00:00
parent 2e1b944087
commit 409ea4b689

View File

@@ -223,10 +223,10 @@ public final class CheckerCommand
byte[] bytes = new byte[BYTE_ARRAY_SIZE];
// make sure all the data is read by the digester
while (dStream.read(bytes, 0, BYTE_ARRAY_SIZE) != -1)
{
// no-op
}
int bytesRead = -1;
do {
bytesRead = dStream.read(bytes, 0, BYTE_ARRAY_SIZE);
} while (bytesRead != -1);
return Utils.toHex(dStream.getMessageDigest().digest());
}