summaryrefslogtreecommitdiffstats
path: root/appc-outbound/appc-aai-client/provider
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-12-03 15:28:33 +0530
committerPatrick Brady <patrick.brady@att.com>2019-01-03 23:47:23 +0000
commit4899134f1c9d137b2b247991f64ba5d98352e8ba (patch)
treef261841b9ec6006d4886482467d0c085d1feaf2f /appc-outbound/appc-aai-client/provider
parent40a702bf21b8cc1582041d9b4622bc9b13b72761 (diff)
Sonar Fix: AAIResourceNode.java
Fixed sonar issues/code-smells across this file. Issue-ID: APPC-1265 Change-Id: Id0339b89f05ba3d55d6b01a0c885fabcadcd86da Signed-off-by: Arundathi Patil <arundpil@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.java9
1 files changed, 4 insertions, 5 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 853565fad..e32cc94ea 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
@@ -84,15 +84,14 @@ public class AAIResourceNode implements SvcLogicJavaPlugin {
log.debug("Cloud Owner" + cloudOwnerValue);
log.debug("CloudRegionId" + cloudOwnerValue);
- SvcLogicContext cloudCtx = new SvcLogicContext();
Map<String, String> paramsCloud = new HashMap<String, String>();
paramsCloud.put(AppcAaiClientConstant.INPUT_PARAM_RESPONSE_PREFIX,
inParams.get(AppcAaiClientConstant.INPUT_PARAM_RESPONSE_PREFIX));
if(StringUtils.isNotBlank(cloudOwnerValue)&&StringUtils.isNotBlank(cloudRegionValue)) {
- paramsCloud.put("cloudOwner", cloudOwnerValue);
- paramsCloud.put("cloudRegionId", cloudRegionValue);
+ paramsCloud.put(PARAM_CLOUD_OWNER, cloudOwnerValue);
+ paramsCloud.put(PARAM_CLOUD_REGION_ID, cloudRegionValue);
aai.getIdentityUrl(paramsCloud, ctx);
}
@@ -511,7 +510,7 @@ public class AAIResourceNode implements SvcLogicJavaPlugin {
return params;
}
- public void getVfModuleModelInfo(Map<String, String> inParams, SvcLogicContext ctx) throws SvcLogicException {
+ public void getVfModuleModelInfo(Map<String, String> inParams, SvcLogicContext ctx) {
log.info("vfModuleInfo()::Retrieving vf-module information :" + inParams.toString());
String responsePrefix = inParams.get(AppcAaiClientConstant.INPUT_PARAM_RESPONSE_PREFIX);
try {
@@ -571,7 +570,7 @@ public class AAIResourceNode implements SvcLogicJavaPlugin {
}
- public void getFormattedValue(Map<String, String> inParams, SvcLogicContext ctx) throws SvcLogicException {
+ public void getFormattedValue(Map<String, String> inParams, SvcLogicContext ctx) {
log.info("getFormattedValue()::Formatting values :" + inParams.toString());
String responsePrefix = inParams.get(AppcAaiClientConstant.INPUT_PARAM_RESPONSE_PREFIX);
try {