mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-19 02:23:24 +08:00
remove checked Exception which will never be thrown from method signature
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user