aboutsummaryrefslogtreecommitdiffstats
path: root/ms/neng/src/main
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2018-12-12 20:50:23 +0530
committerEzhilarasi R <ezhrajam@in.ibm.com>2018-12-13 06:39:40 +0000
commita10eb7537d38ac1f259bedf37eb01382a90b69ed (patch)
tree32ecf35a206098b57d7b312633ac8db3650c7686 /ms/neng/src/main
parent9321f6dea8f57f3e1b9a05c446e59d243f94bfc5 (diff)
Fixed sonar issue i PolicyFinderServiceImpl.java
Fixed major sonar issues Issue-ID: CCSDK-819 Change-Id: I2347aa5f234b33231b7782e6a51d0ba5a1b60dfd Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'ms/neng/src/main')
-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>>>() {});