Multi-thread native unpacking.

This commit is contained in:
shedaniel
2021-01-19 10:50:02 +08:00
parent 34d3475790
commit 5bc74cea90
3 changed files with 17 additions and 8 deletions

View File

@@ -44,8 +44,9 @@ public class Checksum {
try {
HashCode hash = Files.asByteSource(file).hash(Hashing.sha1());
log.debug("Checksum check: '" + hash.toString() + "' == '" + checksum + "'?");
return hash.toString().equals(checksum);
String hashString = hash.toString();
log.debug("Checksum check: '" + hashString + "' == '" + checksum + "'?");
return hashString.equals(checksum);
} catch (IOException e) {
e.printStackTrace();
}