aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2020-06-16 09:42:10 -0400
committerTakamune Cho <takamune.cho@att.com>2020-06-18 13:10:24 +0000
commita25dd1264b51d36eabf416407e52c459423a5f48 (patch)
tree9ea36809256376d1603b2ec59e4262d9c4e6709d /controlloop
parentcaab720c00cafe17458d0d1913a9bfb8012d3c76 (diff)
fix sonar for m2/base - 2
- unused import - Hide Utility Class Constructor : Utility classes should not have a public or default constructor Issue-ID: POLICY-2616 Change-Id: I338a739b6e9fb5f4b47898566362b8a87201dae3 Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'controlloop')
-rw-r--r--controlloop/m2/base/src/main/java/org/onap/policy/m2/base/Util.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/controlloop/m2/base/src/main/java/org/onap/policy/m2/base/Util.java b/controlloop/m2/base/src/main/java/org/onap/policy/m2/base/Util.java
index 8e6d98bf7..5347b5c4e 100644
--- a/controlloop/m2/base/src/main/java/org/onap/policy/m2/base/Util.java
+++ b/controlloop/m2/base/src/main/java/org/onap/policy/m2/base/Util.java
@@ -20,10 +20,6 @@
package org.onap.policy.m2.base;
-import java.util.List;
-
-import org.onap.policy.common.endpoints.event.comm.TopicEndpointManager;
-import org.onap.policy.common.endpoints.event.comm.TopicSink;
import org.onap.policy.drools.core.PolicyContainer;
import org.onap.policy.drools.core.PolicySession;
import org.onap.policy.drools.system.PolicyController;
@@ -34,6 +30,11 @@ import org.onap.policy.drools.system.PolicyEngineConstants;
* This class contains static utility methods.
*/
public class Util {
+ // Add a private Util to hide the implicit public one.
+ private Util() {
+ //not called
+ }
+
/**
* Find the PolicyController associated with the specified PolicySession.
*