update libraries

This commit is contained in:
Adrian Siekierka
2019-04-07 13:33:48 +02:00
parent c43e771ef5
commit c452b3ae8a
2 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ public class Checksum {
}
try {
//noinspection deprecation
HashCode hash = Files.hash(file, Hashing.sha1());
HashCode hash = Files.asByteSource(file).hash(Hashing.sha1());
StringBuilder builder = new StringBuilder();
for (Byte hashBytes : hash.asBytes()) {
builder.append(Integer.toString((hashBytes & 0xFF) + 0x100, 16).substring(1));