fixed sonar issues in GenericQueryRequest.java 31/75531/1
authorSandeep J <sandeejh@in.ibm.com>
Wed, 9 Jan 2019 06:13:10 +0000 (11:43 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Wed, 9 Jan 2019 06:13:19 +0000 (11:43 +0530)
fixed sonar issues

Issue-ID: CCSDK-525
Change-Id: Id3fa1cb63c7a5995f9c0f4705ba7efc2b445bd9d
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/GenericQueryRequest.java

index 5153596..35f190e 100644 (file)
@@ -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
@@ -104,19 +106,19 @@ public class GenericQueryRequest extends AAIRequest {
 
                String encoded_vnf = encodeQuery(requestProperties.getProperty(key));
                request_url = request_url.replace("{identifier}", encoded_vnf) ;
-               aaiService.LOGwriteDateTrace("identifier", requestProperties.getProperty(key));
+               aaiService.LOGwriteDateTrace(IDENTIFIER, requestProperties.getProperty(key));
 
                key = VALUE;
 
                encoded_vnf = encodeQuery(requestProperties.getProperty(key));
                request_url = request_url.replace("{value}", encoded_vnf) ;
-               aaiService.LOGwriteDateTrace("value", requestProperties.getProperty(key));
+               aaiService.LOGwriteDateTrace(VALUE, requestProperties.getProperty(key));
 
                key = START_NODE_TYPE;
 
                encoded_vnf = encodeQuery(requestProperties.getProperty(key));
                request_url = request_url.replace("{start-node-type}", encoded_vnf) ;
-               aaiService.LOGwriteDateTrace("start-node-type", requestProperties.getProperty(key));
+               aaiService.LOGwriteDateTrace(START_NODE_TYPE, requestProperties.getProperty(key));
 
                return request_url;
        }