diff options
Diffstat (limited to 'cmso-topology/src')
5 files changed, 15 insertions, 19 deletions
diff --git a/cmso-topology/src/main/java/org/onap/optf/cmso/common/CmsoRequestError.java b/cmso-topology/src/main/java/org/onap/optf/cmso/common/CmsoRequestError.java index 5cd258e..f644aca 100644 --- a/cmso-topology/src/main/java/org/onap/optf/cmso/common/CmsoRequestError.java +++ b/cmso-topology/src/main/java/org/onap/optf/cmso/common/CmsoRequestError.java @@ -26,8 +26,6 @@ package org.onap.optf.cmso.common; -import com.att.eelf.configuration.EELFLogger; -import com.att.eelf.configuration.EELFManager; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.ArrayList; @@ -35,7 +33,6 @@ import java.util.List; public class CmsoRequestError implements Serializable { private static final long serialVersionUID = 1L; - private static EELFLogger log = EELFManager.getInstance().getLogger(CmsoRequestError.class); @JsonProperty RequestError requestError; diff --git a/cmso-topology/src/main/java/org/onap/optf/cmso/topology/filters/CmsoClientFilters.java b/cmso-topology/src/main/java/org/onap/optf/cmso/topology/filters/CmsoClientFilters.java index 51d548e..248ea43 100644 --- a/cmso-topology/src/main/java/org/onap/optf/cmso/topology/filters/CmsoClientFilters.java +++ b/cmso-topology/src/main/java/org/onap/optf/cmso/topology/filters/CmsoClientFilters.java @@ -28,8 +28,6 @@ package org.onap.optf.cmso.topology.filters; import static com.att.eelf.configuration.Configuration.MDC_KEY_REQUEST_ID; -import com.att.eelf.configuration.EELFLogger; -import com.att.eelf.configuration.EELFManager; import java.io.IOException; import javax.ws.rs.client.ClientRequestContext; import javax.ws.rs.client.ClientRequestFilter; @@ -40,7 +38,6 @@ import org.onap.observations.Mdc; import org.onap.observations.MessageHeaders; import org.onap.observations.MessageHeaders.HeadersEnum; import org.onap.observations.Observation; -import org.onap.optf.cmso.topology.Application; import org.onap.optf.cmso.topology.common.LogMessages; import org.slf4j.MDC; import org.springframework.stereotype.Component; @@ -49,7 +46,6 @@ import org.springframework.stereotype.Component; @Component public class CmsoClientFilters implements ClientRequestFilter, ClientResponseFilter { - private static EELFLogger log = EELFManager.getInstance().getLogger(Application.class); private static String appId = "cmso"; @Override diff --git a/cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/HealthCheckImpl.java b/cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/HealthCheckImpl.java index a1bacb9..4fae359 100644 --- a/cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/HealthCheckImpl.java +++ b/cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/HealthCheckImpl.java @@ -71,6 +71,7 @@ public class HealthCheckImpl implements HealthCheck { return response; } + @SuppressWarnings("unused") private void addToHealthCheckMessage(HealthCheckMessage hc, HealthCheckComponent hcc) { if (!hcc.getHealthy()) { hc.setHealthy(false); @@ -85,6 +86,7 @@ public class HealthCheckImpl implements HealthCheck { * * @return the health check component */ + @SuppressWarnings("unused") private HealthCheckComponent healthCheckDb() { HealthCheckComponent hcc = new HealthCheckComponent(); hcc.setName("Database"); diff --git a/cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/TopologyInterfaceImpl.java b/cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/TopologyInterfaceImpl.java index c824d20..b9ab733 100644 --- a/cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/TopologyInterfaceImpl.java +++ b/cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/TopologyInterfaceImpl.java @@ -48,6 +48,7 @@ import org.springframework.transaction.interceptor.TransactionAspectSupport; @Controller public class TopologyInterfaceImpl implements TopologyInterface { + @SuppressWarnings("unused") private static EELFLogger debug = EELFManager.getInstance().getDebugLogger(); @Autowired @@ -73,13 +74,12 @@ public class TopologyInterfaceImpl implements TopologyInterface { atr.setStatus(TopologyRequestStatus.COMPLETED); List<ElementCriteria> elements = topologyRequest.getElements(); // At a minimum, return the requested elements - for (ElementCriteria criteria : elements) - { + for (ElementCriteria criteria : elements) { ElementInfo element = new ElementInfo(); element.setElementId(criteria.getElementId()); ElementLocation loc = new ElementLocation(); - loc.setLat(new Float(-0.00)); - loc.setLon(new Float(0.00)); + loc.setLat(new Float(-74.024)); + loc.setLon(new Float(40.177)); element.setElementLocation(loc); atr.getElements().add(element); } diff --git a/cmso-topology/src/test/java/org/onap/optf/cmso/utilities/PropertiesAdmin.java b/cmso-topology/src/test/java/org/onap/optf/cmso/utilities/PropertiesAdmin.java index 3413806..ba30e4c 100644 --- a/cmso-topology/src/test/java/org/onap/optf/cmso/utilities/PropertiesAdmin.java +++ b/cmso-topology/src/test/java/org/onap/optf/cmso/utilities/PropertiesAdmin.java @@ -3,19 +3,20 @@ * Copyright (c) 2019 AT&T Intellectual Property. * ======================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. You may obtain a + * not use this file except in compliance with the License. You may obtain a * copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing * permissions and limitations under the License. * ============LICENSE_END================================================= - * + * */ + package org.onap.optf.cmso.utilities; import org.onap.optf.cmso.common.PropertiesManagement; |