summaryrefslogtreecommitdiffstats
path: root/cps-ri/src
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2021-01-12 15:30:20 +0000
committerGerrit Code Review <gerrit@onap.org>2021-01-12 15:30:20 +0000
commit0e337e84e2edafc0b7cefd86ca596da1fd8e054a (patch)
tree3395207bb2e1cd0bded180d3f3376372b7530cc4 /cps-ri/src
parent6ec5273ae659a46dff05bb7993b77202786c92db (diff)
parent9afc8d1448a6a913db56304d3bc80cd92c141d0f (diff)
Merge "Enable spotbugs and fix spotbugs warns"
Diffstat (limited to 'cps-ri/src')
-rw-r--r--cps-ri/src/main/java/org/onap/cps/spi/impl/CpsModulePersistenceServiceImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsModulePersistenceServiceImpl.java b/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsModulePersistenceServiceImpl.java
index 23a384306f..08329309c0 100644
--- a/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsModulePersistenceServiceImpl.java
+++ b/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsModulePersistenceServiceImpl.java
@@ -21,6 +21,7 @@
package org.onap.cps.spi.impl;
import com.google.common.collect.ImmutableSet;
+import java.nio.charset.StandardCharsets;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@@ -76,7 +77,7 @@ public class CpsModulePersistenceServiceImpl implements CpsModulePersistenceServ
final YangResource yangResource = new YangResource();
yangResource.setName(entry.getKey());
yangResource.setContent(entry.getValue());
- yangResource.setChecksum(DigestUtils.md5DigestAsHex(entry.getValue().getBytes()));
+ yangResource.setChecksum(DigestUtils.md5DigestAsHex(entry.getValue().getBytes(StandardCharsets.UTF_8)));
return yangResource;
})
.collect(Collectors.toMap(