support jar upgrading

This commit is contained in:
huangyuhui
2017-02-24 19:42:42 +08:00
parent 4b435d4ac3
commit 6e685a2aa1
3 changed files with 79 additions and 11 deletions

View File

@@ -205,7 +205,7 @@ public class FileDownloadTask extends Task implements PreviousResult<File>, Prev
// Check hash code
String hashCode = String.format("%1$040x", new BigInteger(1, digest.digest()));
if (expectedHash != null && !expectedHash.equals(hashCode))
if (expectedHash != null && !expectedHash.equalsIgnoreCase(hashCode))
throw new IllegalStateException("Unexpected hash code: " + hashCode + ", expected: " + expectedHash);
if (ppl != null)