mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 23:43:06 +00:00
[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:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user