From 1687c3e4d0e79adf00542c295aa1adce901a2eb9 Mon Sep 17 00:00:00 2001 From: "Sindhuri.A" Date: Fri, 19 Apr 2019 23:26:15 +0530 Subject: 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 --- .../java/org/onap/so/client/graphinventory/entities/DSLNodeKey.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') 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 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)); -- cgit 1.2.3-korg