aboutsummaryrefslogtreecommitdiffstats
path: root/aai-service/provider/src/main
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-12-21 16:07:00 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-12-21 16:07:11 +0530
commit71792780a027c31d2814d975492a72f020115128 (patch)
tree2016a47c0469c2bf713c4068069e0bd8b4d13b10 /aai-service/provider/src/main
parent5df4fb30eaf3bbbd6ac5802a8f75fcf8c19d4e6f (diff)
Sonar fix: CustomQueryRequest.java
Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-872 Change-Id: I64a1c297f3eba7305479b7102eccf9ffd8b7ec18 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'aai-service/provider/src/main')
-rw-r--r--aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/CustomQueryRequest.java8
1 files changed, 3 insertions, 5 deletions
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;
}