diff options
author | Taka <tc012c@att.com> | 2017-12-10 19:22:40 -0500 |
---|---|---|
committer | Taka <tc012c@att.com> | 2017-12-10 19:23:28 -0500 |
commit | 9e634656dee421be01e773a39b927e758afe449d (patch) | |
tree | 9276ecff2616c57e758825934886800ded34a0e6 /appc-adapters | |
parent | 3f4c146780a45b5e6fb0b6ea14679efae741dfe8 (diff) |
fix netconf and healthcheck adaprot for Sonar
Change-Id: I06c22b055d3cbf3826062f85a0878f488c0696cd
Issue-ID: APPC-341
Signed-off-by: Taka <tc012c@att.com>
Diffstat (limited to 'appc-adapters')
2 files changed, 0 insertions, 31 deletions
diff --git a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/openecomp/appc/adapter/netconf/VNFOperationalStateValidatorImpl.java b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/openecomp/appc/adapter/netconf/VNFOperationalStateValidatorImpl.java index 7a17b6c42..6bb3b57d3 100644 --- a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/openecomp/appc/adapter/netconf/VNFOperationalStateValidatorImpl.java +++ b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/openecomp/appc/adapter/netconf/VNFOperationalStateValidatorImpl.java @@ -25,8 +25,6 @@ package org.openecomp.appc.adapter.netconf; import org.apache.commons.lang3.StringUtils; -import org.openecomp.appc.configuration.Configuration; -import org.openecomp.appc.configuration.ConfigurationFactory; import org.openecomp.appc.exceptions.APPCException; import org.w3c.dom.Document; import org.w3c.dom.Element; @@ -39,7 +37,6 @@ import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import java.io.ByteArrayInputStream; import java.io.IOException; -import java.io.StringReader; import java.util.*; public class VNFOperationalStateValidatorImpl implements OperationalStateValidator { diff --git a/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/main/java/org/openecomp/appc/adapter/restHealthcheck/impl/RestHealthcheckAdapterImpl.java b/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/main/java/org/openecomp/appc/adapter/restHealthcheck/impl/RestHealthcheckAdapterImpl.java index 6cf2eaf39..72c153cb5 100644 --- a/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/main/java/org/openecomp/appc/adapter/restHealthcheck/impl/RestHealthcheckAdapterImpl.java +++ b/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/main/java/org/openecomp/appc/adapter/restHealthcheck/impl/RestHealthcheckAdapterImpl.java @@ -24,53 +24,26 @@ package org.openecomp.appc.adapter.restHealthcheck.impl; -import java.net.URI; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; import java.util.Map; import java.util.Properties; -import java.util.Set; -import java.util.regex.Pattern; import org.apache.http.impl.client.CloseableHttpClient; import org.openecomp.appc.Constants; import org.openecomp.appc.adapter.restHealthcheck.RestHealthcheckAdapter; import org.openecomp.appc.configuration.Configuration; -import org.openecomp.appc.configuration.ConfigurationFactory; -import org.openecomp.appc.exceptions.APPCException; -import org.openecomp.appc.exceptions.UnknownProviderException; -import org.openecomp.appc.i18n.Msg; -import org.openecomp.appc.pool.Pool; import org.openecomp.appc.pool.PoolExtensionException; import org.openecomp.appc.util.StructuredPropertyHelper; -import org.openecomp.appc.util.StructuredPropertyHelper.Node; -import com.att.cdp.exceptions.ContextConnectionException; -import com.att.cdp.exceptions.ResourceNotFoundException; -import com.att.cdp.exceptions.TimeoutException; -import com.att.cdp.exceptions.ZoneException; -import com.att.cdp.pal.util.StringHelper; -import com.att.cdp.zones.ComputeService; -import com.att.cdp.zones.Context; import com.att.cdp.zones.ImageService; import com.att.cdp.zones.Provider; -import com.att.cdp.zones.model.Image; -import com.att.cdp.zones.model.Server; -import com.att.cdp.zones.model.Server.Status; -import com.att.cdp.zones.model.ServerBootSource; import com.att.eelf.configuration.EELFLogger; import com.att.eelf.configuration.EELFManager; import com.att.eelf.i18n.EELFResourceManager; import org.onap.ccsdk.sli.core.sli.SvcLogicContext; import org.glassfish.grizzly.http.util.HttpStatus; -import org.slf4j.MDC; -import java.net.InetAddress; -import java.util.Locale; -import java.util.UUID; import static com.att.eelf.configuration.Configuration.*; import org.apache.http.*; @@ -79,7 +52,6 @@ import org.apache.http.client.methods.*; import org.apache.http.impl.client.*; import org.apache.http.util.EntityUtils; import java.io.IOException; -import org.apache.http.entity.StringEntity; import java.net.InetAddress; public class RestHealthcheckAdapterImpl implements RestHealthcheckAdapter { |