From dbdef1e3e3803b5848a1fad746c652f9359d4313 Mon Sep 17 00:00:00 2001 From: "Magnusen, Drew (dm741q)" Date: Tue, 17 Apr 2018 11:59:43 -0500 Subject: Sonar cleanup More sonar cleanup. Resolved some of the simpler issues. Issue-ID: POLICY-728 Change-Id: If9c4718f10c6d3524239d2a05c09badb791ef2f0 Signed-off-by: Magnusen, Drew (dm741q) --- .../policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'feature-state-management/src/main') diff --git a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java index 46bba914..83d4f040 100644 --- a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java +++ b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java @@ -22,6 +22,7 @@ package org.onap.policy.drools.statemanagement; import java.io.IOException; import java.util.ArrayList; +import java.util.List; import java.util.Properties; import org.onap.policy.common.im.IntegrityMonitor; import org.onap.policy.common.im.IntegrityMonitorException; @@ -60,11 +61,11 @@ public class DroolsPDPIntegrityMonitor extends IntegrityMonitor * @param url the JMX URL of the MBean server * @param properties properties used locally, as well as by * 'IntegrityMonitor' - * @throws Exception (passed from superclass) + * @throws IntegrityMonitorException (passed from superclass) */ private DroolsPDPIntegrityMonitor(String resourceName, Properties consolidatedProperties - ) throws Exception { + ) throws IntegrityMonitorException { super(resourceName, consolidatedProperties); } @@ -385,7 +386,7 @@ public class DroolsPDPIntegrityMonitor extends IntegrityMonitor @Override public boolean start() { try { - ArrayList servers = HttpServletServer.factory.build(integrityMonitorRestServerProperties); + List servers = HttpServletServer.factory.build(integrityMonitorRestServerProperties); if (!servers.isEmpty()) { server = servers.get(0); -- cgit 1.2.3-korg