summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToineSiebelink <toine.siebelink@est.tech>2021-01-21 11:13:55 +0000
committerToineSiebelink <toine.siebelink@est.tech>2021-01-21 11:16:57 +0000
commit961356b1c9b2a9b4db2dd58e4d8ca44690c9cf36 (patch)
tree12e7b9957b1538f65eb3f33948027a09c52aedf7
parentcd9f368b1f3c5e25e17e21649e582d84a909ac79 (diff)
Fix sonarqube violations
Issue-ID: CPS-89 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I8ce5f6fedb5d7c4d6c17d419b759b9d836f94ae9
-rw-r--r--cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java2
-rw-r--r--cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java1
2 files changed, 1 insertions, 2 deletions
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java b/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java
index 283d646825..ef64c34d5c 100644
--- a/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java
+++ b/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java
@@ -46,7 +46,7 @@ public class CpsDataPersistenceServiceImpl implements CpsDataPersistenceService
@Autowired
private FragmentRepository fragmentRepository;
- private static Gson GSON = new GsonBuilder().create();
+ private static final Gson GSON = new GsonBuilder().create();
@Override
public void storeDataNode(final String dataspaceName, final String anchorName, final DataNode dataNode) {
diff --git a/cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java b/cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java
index eac28a9f09..0cd1b209f1 100644
--- a/cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java
+++ b/cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java
@@ -20,7 +20,6 @@
package org.onap.cps.api.impl;
import java.util.Map;
-import org.checkerframework.checker.nullness.qual.NonNull;
import org.onap.cps.api.CpsModuleService;
import org.onap.cps.spi.CascadeDeleteAllowed;
import org.onap.cps.spi.CpsModulePersistenceService;