Skip to content
Next Next commit
Replace call to deprecated method DigestUtils#shaHex(InputStream)
Replace call to deprecated method DigestUtils#shaHex(InputStream) by call to method DigestUtils#sha1Hex(InputStream)
  • Loading branch information
duke1995 committed Mar 11, 2023
commit cdcc0e482f72b69ce2c2ba6430a6b8264b2bd7be
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ protected Path resolveRelativelyToProjectRoot(String sourceName) {
protected String sha1(String sourceName) {
try (InputStream inputStream =
Files.newInputStream(resolveRelativelyToProjectRoot(sourceName))) {
return DigestUtils.shaHex(inputStream);
return DigestUtils.sha1Hex(inputStream);
} catch (IOException e) {
throw new RuntimeException(e);
}
Expand Down