Feat: add static analytic of code
This commit is contained in:
@@ -50,8 +50,9 @@ public class Md5 {
|
||||
InputStream is = Files.newInputStream(Paths.get(path));
|
||||
DigestInputStream dis = new DigestInputStream(is, md);
|
||||
byte[] buffer = new byte[8192];
|
||||
while (dis.read(buffer) > 0)
|
||||
; // process the entire file
|
||||
while (dis.read(buffer) > 0) {
|
||||
// process the entire file
|
||||
}
|
||||
String data = Utils.convertBinaryToHex(md.digest());
|
||||
dis.close();
|
||||
is.close();
|
||||
|
||||
Reference in New Issue
Block a user