From a25dd1264b51d36eabf416407e52c459423a5f48 Mon Sep 17 00:00:00 2001 From: Taka Cho Date: Tue, 16 Jun 2020 09:42:10 -0400 Subject: 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 --- .../m2/base/src/main/java/org/onap/policy/m2/base/Util.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'controlloop/m2/base/src') 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. * -- cgit 1.2.3-korg