remove checked Exception which will never be thrown from method signature

This commit is contained in:
dugenkui03
2022-04-07 23:17:58 +08:00
parent fd554ab120
commit 3e38468d55
2 changed files with 9 additions and 11 deletions
@@ -89,7 +89,7 @@ public class FileWatchService extends ServiceThread {
log.info(this.getServiceName() + " service end");
}
private String hash(String filePath) throws IOException, NoSuchAlgorithmException {
private String hash(String filePath) throws IOException {
Path path = Paths.get(filePath);
md.update(Files.readAllBytes(path));
byte[] hash = md.digest();