summaryrefslogtreecommitdiffstats
path: root/ms/neng/src
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2018-12-17 20:02:17 +0000
committerGerrit Code Review <gerrit@onap.org>2018-12-17 20:02:17 +0000
commit703005795f88653f4f871521ce0ebe5311322bae (patch)
tree8746dd7899a822d76e7337f38859915d5155ce7a /ms/neng/src
parent62abb8c4940c3c5c541b50d23161737062db4999 (diff)
parenta10eb7537d38ac1f259bedf37eb01382a90b69ed (diff)
Merge "Fixed sonar issue i PolicyFinderServiceImpl.java"
Diffstat (limited to 'ms/neng/src')
-rw-r--r--ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImpl.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImpl.java b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImpl.java
index b30ac0e6..ce7e3fd5 100644
--- a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImpl.java
+++ b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImpl.java
@@ -85,8 +85,7 @@ public class PolicyFinderServiceImpl implements PolicyFinder {
GetConfigResponse getConfig(String policyName) throws Exception {
GetConfigRequest getConfigRequest = new GetConfigRequest();
getConfigRequest.setPolicyName(policyName);
- GetConfigResponse getConfigResponse = makeOutboundCall(getConfigRequest, GetConfigResponse.class);
- return getConfigResponse;
+ return (makeOutboundCall(getConfigRequest, GetConfigResponse.class));
}
<T, R> GetConfigResponse makeOutboundCall(T request, Class<R> response) throws Exception {
@@ -97,7 +96,8 @@ public class PolicyFinderServiceImpl implements PolicyFinder {
ResponseEntity<Object> resp = getRestTemplate().exchange(re, Object.class);
if (HttpStatus.OK.equals(resp.getStatusCode())) {
ObjectMapper objectmapper = new ObjectMapper();
- System.out.println(objectmapper.writeValueAsString(resp.getBody()));
+ log.info(objectmapper.writeValueAsString(resp.getBody()));
+ //System.out.println(objectmapper.writeValueAsString(resp.getBody()));
List<Map<Object, Object>> respObj = objectmapper.readValue(
objectmapper.writeValueAsString(resp.getBody()),
new TypeReference<List<Map<Object, Object>>>() {});