From 71792780a027c31d2814d975492a72f020115128 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Fri, 21 Dec 2018 16:07:00 +0530 Subject: Sonar fix: CustomQueryRequest.java Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-872 Change-Id: I64a1c297f3eba7305479b7102eccf9ffd8b7ec18 Signed-off-by: Arundathi Patil --- .../java/org/onap/ccsdk/sli/adaptors/aai/CustomQueryRequest.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'aai-service') diff --git a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/CustomQueryRequest.java b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/CustomQueryRequest.java index 52959073..aaae11a9 100644 --- a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/CustomQueryRequest.java +++ b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/CustomQueryRequest.java @@ -32,9 +32,7 @@ import org.onap.ccsdk.sli.adaptors.aai.data.AAIDatum; import org.onap.ccsdk.sli.adaptors.aai.query.FormattedQueryRequestData; import org.onap.ccsdk.sli.adaptors.aai.query.FormattedQueryResultList; -import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; @@ -111,14 +109,14 @@ public class CustomQueryRequest extends AAIRequest { String key = FORMAT; - String encoded_vnf = encodeQuery(requestProperties.getProperty(key)); - requestUrl = requestUrl.replace("{identifier}", encoded_vnf) ; + String encodedVnf = encodeQuery(requestProperties.getProperty(key)); + requestUrl = requestUrl.replace("{identifier}", encodedVnf) ; aaiService.LOGwriteDateTrace("identifier", requestProperties.getProperty(key)); return requestUrl; } - public AAIDatum jsonStringToObject(String jsonData) throws JsonParseException, JsonMappingException, IOException { + public AAIDatum jsonStringToObject(String jsonData) throws IOException { if(jsonData == null) { return null; } -- cgit 1.2.3-korg