Fix Blocker/Critical sonar issues 41/13741/1
authorshashikanth <shashikanth.vh@huawei.com>
Wed, 20 Sep 2017 07:35:19 +0000 (13:05 +0530)
committershashikanth <shashikanth.vh@huawei.com>
Wed, 20 Sep 2017 07:35:19 +0000 (13:05 +0530)
Fix Blocker/Critical sonar issues in aai/sparky-be module
https://sonar.onap.org/component_issues?id=org.openecomp.aai.sparky-be%3Asparky-be#resolved=false|severities=CRITICAL

Fixed Correct this "&" to "&&".

Issue-Id:AAI-342
Change-Id: Ia6bd54cf18406c3327b77820abe68a6c0f4484b9
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
src/main/java/org/openecomp/sparky/viewandinspect/entity/ActiveInventoryNode.java

index aef710d..fc0f074 100644 (file)
@@ -166,7 +166,7 @@ public class ActiveInventoryNode {
   
   public void addQueryParams(Collection<String> params) {
 
-    if (params != null & params.size() > 0) {
+    if (params != null && !params.isEmpty()) {
 
       for (String param : params) {
         addQueryParam(param);