diff options
author | shashikanth <shashikanth.vh@huawei.com> | 2017-09-18 15:29:53 +0530 |
---|---|---|
committer | Skip Wonnell <skip@att.com> | 2017-09-18 22:24:08 +0000 |
commit | 1a9f177416ef1dab33c54e3d08fdbaa26e88034c (patch) | |
tree | 5e6a70a7016eb9638656158073b0c9618240027b /appc-config/appc-data-services/provider/src/main | |
parent | ac822a12b7963c04992684ac3307ed986073f342 (diff) |
Fix Blocker/Critical sonar issues
Fix Blocker/Critical sonar issues in appc module
https://sonar.onap.org/component_issues?id=org.openecomp.appc%3Aappc#resolved=false|severities=BLOCKER
Redundent if condition removed from DGGeneralDBService.java
Issue-Id: APPC-92
Change-Id: I9b963759e562dc0744b3742a70905a417c3c444a
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
Diffstat (limited to 'appc-config/appc-data-services/provider/src/main')
-rw-r--r-- | appc-config/appc-data-services/provider/src/main/java/org/openecomp/appc/data/services/db/DGGeneralDBService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/appc-config/appc-data-services/provider/src/main/java/org/openecomp/appc/data/services/db/DGGeneralDBService.java b/appc-config/appc-data-services/provider/src/main/java/org/openecomp/appc/data/services/db/DGGeneralDBService.java index 87995fe85..1b63d75e9 100644 --- a/appc-config/appc-data-services/provider/src/main/java/org/openecomp/appc/data/services/db/DGGeneralDBService.java +++ b/appc-config/appc-data-services/provider/src/main/java/org/openecomp/appc/data/services/db/DGGeneralDBService.java @@ -417,7 +417,7 @@ public class DGGeneralDBService { QueryStatus status = null; SvcLogicContext localContext = new SvcLogicContext(); localContext.setAttribute("vnf-type", vnf_type); - if (serviceLogic != null && localContext != null) { + if (serviceLogic != null) { String queryString = "select max(internal_version) as maxInternalVersion, artifact_name as artifactName from ASDC_ARTIFACTS " + " where artifact_name in (select artifact_name from ASDC_REFERENCE where vnf_type= $vnf-type " + " and file_category = 'capability' )" ; |