From 376c6c4a5ba49d4c4876721f0adcad553ca66d0e Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Fri, 5 Jul 2019 09:58:14 -0400 Subject: Fix sonar issues in Integrity Monitor Fixed most sonar issues, except for code coverage. Change-Id: I473635d896797b2290920da86c6770848bc2e883 Issue-ID: POLICY-1791 Signed-off-by: Jim Hahn --- .../src/test/java/org/onap/policy/common/im/AllSeemsWellTest.java | 2 +- .../src/test/java/org/onap/policy/common/im/IntegrityMonitorTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'integrity-monitor/src/test') diff --git a/integrity-monitor/src/test/java/org/onap/policy/common/im/AllSeemsWellTest.java b/integrity-monitor/src/test/java/org/onap/policy/common/im/AllSeemsWellTest.java index 0c4bfde1..79cfe549 100644 --- a/integrity-monitor/src/test/java/org/onap/policy/common/im/AllSeemsWellTest.java +++ b/integrity-monitor/src/test/java/org/onap/policy/common/im/AllSeemsWellTest.java @@ -42,9 +42,9 @@ public class AllSeemsWellTest extends IntegrityMonitorTestBase { private static Logger logger = LoggerFactory.getLogger(AllSeemsWellTest.class); - private static Properties myProp; private static String resourceName; + private Properties myProp; private Semaphore monitorSem; private Semaphore junitSem; diff --git a/integrity-monitor/src/test/java/org/onap/policy/common/im/IntegrityMonitorTest.java b/integrity-monitor/src/test/java/org/onap/policy/common/im/IntegrityMonitorTest.java index 3c36c5d6..1e194c3b 100644 --- a/integrity-monitor/src/test/java/org/onap/policy/common/im/IntegrityMonitorTest.java +++ b/integrity-monitor/src/test/java/org/onap/policy/common/im/IntegrityMonitorTest.java @@ -70,10 +70,10 @@ public class IntegrityMonitorTest extends IntegrityMonitorTestBase { */ private static final int DEPENDENCY_CHECK_CYCLES = 6; - private static Properties myProp; - private static EntityTransaction et; private static String resourceName; + private Properties myProp; + private EntityTransaction et; private Semaphore monitorSem; private Semaphore junitSem; -- cgit 1.2.3-korg