aboutsummaryrefslogtreecommitdiffstats
path: root/common/src/main/java
diff options
context:
space:
mode:
authorSindhuri.A <arcot.sindhuri@huawei.com>2019-04-19 23:26:15 +0530
committerSindhuri.A <arcot.sindhuri@huawei.com>2019-04-19 23:26:15 +0530
commit1687c3e4d0e79adf00542c295aa1adce901a2eb9 (patch)
tree0eab22e3808243b5b3db3e05382b3deabbb80e5e /common/src/main/java
parentba5d6d7ebb12f21011611d081868e41157b583d0 (diff)
Move String literal to left-hand side of equals
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>
Diffstat (limited to 'common/src/main/java')
-rw-r--r--common/src/main/java/org/onap/so/client/graphinventory/entities/DSLNodeKey.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/src/main/java/org/onap/so/client/graphinventory/entities/DSLNodeKey.java b/common/src/main/java/org/onap/so/client/graphinventory/entities/DSLNodeKey.java
index bf33e8f8d3..f7f5d78604 100644
--- a/common/src/main/java/org/onap/so/client/graphinventory/entities/DSLNodeKey.java
+++ b/common/src/main/java/org/onap/so/client/graphinventory/entities/DSLNodeKey.java
@@ -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));