summaryrefslogtreecommitdiffstats
path: root/appc-outbound/appc-aai-client/provider
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-20 19:23:47 +0530
committerTakamune Cho <tc012c@att.com>2018-08-21 16:28:07 +0000
commit3098bcd71f40750cce76c28ca74f89be1d76c536 (patch)
tree586ebb1c8a272e96055c64975ab83b4b3e7c0dda /appc-outbound/appc-aai-client/provider
parentec858744b4688b4fd233cbe47ef2a4c4e0ae86f3 (diff)
fixed few sonar issues in AAIResourceNode.java
fixed few Sonar issues Issue-ID: APPC-1166 Change-Id: Idc11b37bb22105750146c2bccd84f173f086c61f Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-outbound/appc-aai-client/provider')
-rw-r--r--appc-outbound/appc-aai-client/provider/src/main/java/org/onap/appc/aai/client/node/AAIResourceNode.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/appc-outbound/appc-aai-client/provider/src/main/java/org/onap/appc/aai/client/node/AAIResourceNode.java b/appc-outbound/appc-aai-client/provider/src/main/java/org/onap/appc/aai/client/node/AAIResourceNode.java
index cc084d426..cc3e804cc 100644
--- a/appc-outbound/appc-aai-client/provider/src/main/java/org/onap/appc/aai/client/node/AAIResourceNode.java
+++ b/appc-outbound/appc-aai-client/provider/src/main/java/org/onap/appc/aai/client/node/AAIResourceNode.java
@@ -6,6 +6,8 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
+ * 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
@@ -119,7 +121,7 @@ public class AAIResourceNode implements SvcLogicJavaPlugin {
SvcLogicContext vmServerCtx = new SvcLogicContext();
- Map<String, String> paramsVm = new HashMap<String, String>();
+ Map<String, String> paramsVm = new HashMap<>();
paramsVm.put(PARAM_VSERVER_ID, ctx.getAttribute(responsePrefix + "vm[" + i + STR_VSERVER_ID));
paramsVm.put(PARAM_TENANT_ID, ctx.getAttribute(responsePrefix + "vm[" + i + STR_TENANT_ID));
paramsVm.put(PARAM_CLOUD_OWNER, ctx.getAttribute(responsePrefix + "vm[" + i + STR_CLOUD_OWNER));
@@ -130,7 +132,7 @@ public class AAIResourceNode implements SvcLogicJavaPlugin {
aai.getVMInfo(paramsVm, vmServerCtx);
- HashMap<String, String> vserverMap = new HashMap<String, String>();
+ HashMap<String, String> vserverMap = new HashMap<>();
vserverMap.put("vserver-id", ctx.getAttribute(responsePrefix + "vm[" + i + STR_VSERVER_ID));
vserverMap.put("tenant-id", ctx.getAttribute(responsePrefix + "vm[" + i + STR_TENANT_ID));
vserverMap.put("cloud-owner", ctx.getAttribute(responsePrefix + "vm[" + i + STR_CLOUD_OWNER));
@@ -139,7 +141,7 @@ public class AAIResourceNode implements SvcLogicJavaPlugin {
// Parameters returned by getVMInfo
vserverMap.put(PARAM_VSERVER_NAME, vmServerCtx.getAttribute(responsePrefix + "vm.vserver-name"));
vserverMap.put("vf-module-id", vmServerCtx.getAttribute(responsePrefix + "vm.vf-module-id"));
- vserverMap.put("vserver-selflink", vmServerCtx.getAttribute(responsePrefix + "vm.vserver-selflink"));
+ vserverMap.put(PARAM_VSERVER_SELFLINK, vmServerCtx.getAttribute(responsePrefix + "vm.vserver-selflink"));
log.info("VSERVER-LINK VALUE:" + vmServerCtx.getAttribute(responsePrefix + "vm.vserver-selflink"));