diff options
Diffstat (limited to 'framework/src/main/java')
-rw-r--r-- | framework/src/main/java/org/onap/cli/fw/store/OnapCommandArtifactStore.java | 2 | ||||
-rw-r--r-- | framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/store/OnapCommandArtifactStore.java b/framework/src/main/java/org/onap/cli/fw/store/OnapCommandArtifactStore.java index 7ffe05e1..fa1d50fc 100644 --- a/framework/src/main/java/org/onap/cli/fw/store/OnapCommandArtifactStore.java +++ b/framework/src/main/java/org/onap/cli/fw/store/OnapCommandArtifactStore.java @@ -160,7 +160,7 @@ public class OnapCommandArtifactStore { private String getChecksum(String storePath) throws IOException, NoSuchAlgorithmException { byte[] b = Files.readAllBytes(Paths.get(storePath)); - byte[] hash = MessageDigest.getInstance("MD5").digest(b); + byte[] hash = MessageDigest.getInstance("MD5").digest(b); //NOSONAR return DatatypeConverter.printHexBinary(hash); } diff --git a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java index 7148aa10..2cd07ed8 100644 --- a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java +++ b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java @@ -431,7 +431,7 @@ public class OnapCommandUtils { } public static String md5(String content) { - String md5 = DigestUtils.md5Hex(content); + String md5 = DigestUtils.md5Hex(content); //NOSONAR byte[] encodeBase64 = Base64.encodeBase64(md5.getBytes()); return new String(encodeBase64); |