From edb030d95e988dd463be3401767d0d6d5edd99b6 Mon Sep 17 00:00:00 2001 From: shashikanth Date: Wed, 20 Sep 2017 13:05:19 +0530 Subject: Fix Blocker/Critical sonar issues 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 --- .../org/openecomp/sparky/viewandinspect/entity/ActiveInventoryNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/ActiveInventoryNode.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/ActiveInventoryNode.java index aef710d..fc0f074 100644 --- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/ActiveInventoryNode.java +++ b/src/main/java/org/openecomp/sparky/viewandinspect/entity/ActiveInventoryNode.java @@ -166,7 +166,7 @@ public class ActiveInventoryNode { public void addQueryParams(Collection params) { - if (params != null & params.size() > 0) { + if (params != null && !params.isEmpty()) { for (String param : params) { addQueryParam(param); -- cgit 1.2.3-korg