Move String literal to left-hand side of equals 42/85842/1
authorSindhuri.A <arcot.sindhuri@huawei.com>
Fri, 19 Apr 2019 17:56:15 +0000 (23:26 +0530)
committerSindhuri.A <arcot.sindhuri@huawei.com>
Fri, 19 Apr 2019 17:56:15 +0000 (23:26 +0530)
Move String literal to left-hand side of equals DSLNodeKey class

Issue-ID: SO-1490

Change-Id: Ie8b1b12aaf38bbb0f1f37a56f375ab4c002d6407
Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
common/src/main/java/org/onap/so/client/graphinventory/entities/DSLNodeKey.java

index bf33e8f..f7f5d78 100644 (file)
@@ -56,9 +56,9 @@ public class DSLNodeKey implements QueryStep {
         result.append("('").append(keyName).append("', ");
         List<String> temp = new ArrayList<>();
         for (String item : values) {
-            if (item.equals("null")) {
+            if ("null".equals(item)) {
                 temp.add(String.format("' %s '", item));
-            } else if (item.equals("")) {
+            } else if ("".equals(item)) {
                 temp.add("' '");
             } else {
                 temp.add(String.format("'%s'", item));