aboutsummaryrefslogtreecommitdiffstats
path: root/aai-service/provider/src/main
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-01-30 14:59:09 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-30 14:59:09 +0000
commit9f90c664af7e19c2381efeaf52ce46f943dc2b49 (patch)
tree5a4d4c64517d60c0a10bd3679acb69d6c1ae1dc9 /aai-service/provider/src/main
parentb4be725fbdecc7cb6e2d0021876de81d698601f1 (diff)
parentf0d1af58a2d41ce328c0599dadce4878efca0e90 (diff)
Merge "fixed sonar issues in NamedQueryRequest.java"
Diffstat (limited to 'aai-service/provider/src/main')
-rwxr-xr-xaai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/NamedQueryRequest.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/NamedQueryRequest.java b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/NamedQueryRequest.java
index 691ae27a..d1995f04 100755
--- a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/NamedQueryRequest.java
+++ b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/NamedQueryRequest.java
@@ -5,6 +5,8 @@
* Copyright (C) 2017 AT&T Intellectual Property. All rights
* reserved.
* ================================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
* 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 copy of the License at
@@ -107,7 +109,7 @@ public class NamedQueryRequest extends AAIRequest {
if(innerChild != null) {
if(innerChild instanceof ObjectNode) {
ObjectNode on = ObjectNode.class.cast(innerChild);
- List<String> namesToDelete = new ArrayList<String>();
+ List<String> namesToDelete = new ArrayList<>();
Iterator<String> names = on.fieldNames();
while(names.hasNext()) {
String name = names.next();
@@ -125,7 +127,7 @@ public class NamedQueryRequest extends AAIRequest {
if(innerChild != null) {
if(innerChild instanceof ObjectNode) {
ObjectNode on = ObjectNode.class.cast(innerChild);
- List<String> namesToDelete = new ArrayList<String>();
+ List<String> namesToDelete = new ArrayList<>();
Iterator<String> names = on.fieldNames();
while(names.hasNext()) {
String name = names.next();
@@ -143,7 +145,7 @@ public class NamedQueryRequest extends AAIRequest {
if(innerChild != null) {
if(innerChild instanceof ObjectNode) {
ObjectNode on = ObjectNode.class.cast(innerChild);
- List<String> namesToDelete = new ArrayList<String>();
+ List<String> namesToDelete = new ArrayList<>();
Iterator<String> names = on.fieldNames();
while(names.hasNext()) {
String name = names.next();
@@ -194,7 +196,7 @@ public class NamedQueryRequest extends AAIRequest {
if(requestProperties.containsKey(key)) {
encoded_vnf = encodeQuery(requestProperties.getProperty(key));
request_url = request_url.replace("{named-query-uuid}", encoded_vnf) ;
- aaiService.LOGwriteDateTrace("named-query-uuid", requestProperties.getProperty(key));
+ aaiService.LOGwriteDateTrace(NAMED_QUERY_UUID, requestProperties.getProperty(key));
}
key = PREFIX;
@@ -202,7 +204,7 @@ public class NamedQueryRequest extends AAIRequest {
if(requestProperties.containsKey(key)) {
encoded_vnf = encodeQuery(requestProperties.getProperty(key));
request_url = request_url.replace("{prefix}", encoded_vnf) ;
- aaiService.LOGwriteDateTrace("prefix", requestProperties.getProperty(key));
+ aaiService.LOGwriteDateTrace(PREFIX, requestProperties.getProperty(key));
}
return request_url;