diff options
author | Rupinder <rupinsi1@in.ibm.com> | 2020-06-01 14:27:56 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2020-06-04 15:29:06 +0000 |
commit | 3baea8e7e5ac5039d27ecd2d504f4ea24034f730 (patch) | |
tree | c805fd788604d3ccb7f5b42baa7226f299500248 /appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java | |
parent | aa350b8ce81033db26dbb88f47c072bd0f32ce86 (diff) |
lower code smells
Issue-ID: APPC-1859
Change-Id: I6d0a7563199355a446345f568415a78856c0cfa6
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java')
-rw-r--r-- | appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/impl/RequestValidatorImpl.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/impl/RequestValidatorImpl.java b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/impl/RequestValidatorImpl.java index 6605d1e83..5e43d39a4 100644 --- a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/impl/RequestValidatorImpl.java +++ b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/impl/RequestValidatorImpl.java @@ -434,12 +434,12 @@ public class RequestValidatorImpl extends AbstractRequestValidatorImpl { return vnfContext; } - private SvcLogicContext getVnfdata(String vnf_id, String prefix, SvcLogicContext ctx) throws VNFNotFoundException { + private SvcLogicContext getVnfdata(String vnfId, String prefix, SvcLogicContext ctx) throws VNFNotFoundException { if (logger.isTraceEnabled()) { - logger.trace("Entering to getVnfdata with vnfid = " + ObjectUtils.toString(vnf_id) + ", prefix = " + logger.trace("Entering to getVnfdata with vnfid = " + ObjectUtils.toString(vnfId) + ", prefix = " + ObjectUtils.toString(prefix) + ", SvcLogicContext" + ObjectUtils.toString(ctx)); } - String key = "vnf-id = '" + vnf_id + "'"; + String key = "vnf-id = '" + vnfId + "'"; logger.debug("inside getVnfdata=== " + key); try { Date beginTimestamp = new Date(); @@ -452,9 +452,9 @@ public class RequestValidatorImpl extends AbstractRequestValidatorImpl { LoggingConstants.TargetNames.AAI, LoggingConstants.TargetServiceNames.AAIServiceNames.QUERY, status, "", response.name(), this.getClass().getCanonicalName()); if (SvcLogicResource.QueryStatus.NOT_FOUND.equals(response)) { - throw new VNFNotFoundException("VNF not found for vnf_id = " + vnf_id, vnf_id); + throw new VNFNotFoundException("VNF not found for vnf_id = " + vnfId, vnfId); } else if (SvcLogicResource.QueryStatus.FAILURE.equals(response)) { - throw new RuntimeException("Error Querying AAI with vnfID = " + vnf_id); + throw new RuntimeException("Error Querying AAI with vnfID = " + vnfId); } logger.info("AAIResponse: " + response.toString()); } catch (SvcLogicException e) { |