fix sonar for m2/base - 2 95/109195/5
authorTaka Cho <takamune.cho@att.com>
Tue, 16 Jun 2020 13:42:10 +0000 (09:42 -0400)
committerTakamune Cho <takamune.cho@att.com>
Thu, 18 Jun 2020 13:10:24 +0000 (13:10 +0000)
- 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>
controlloop/m2/base/src/main/java/org/onap/policy/m2/base/Util.java

index 8e6d98b..5347b5c 100644 (file)
 
 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.
      *