Fix Blocker/Critical sonar issues 89/13089/2
authorshashikanth <shashikanth.vh@huawei.com>
Mon, 18 Sep 2017 09:59:53 +0000 (15:29 +0530)
committerSkip Wonnell <skip@att.com>
Mon, 18 Sep 2017 22:24:08 +0000 (22:24 +0000)
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>
appc-config/appc-data-services/provider/src/main/java/org/openecomp/appc/data/services/db/DGGeneralDBService.java

index 87995fe..1b63d75 100644 (file)
@@ -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' )" ;