diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2019-04-20 06:38:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-20 06:38:17 +0000 |
commit | fa43775ab277f30f9403c69535cfa4e0be0b4f6e (patch) | |
tree | a75b60c51fab8a94244cf2d209644f32c5e854fb /common/src | |
parent | 37a15ac835736a3aa057f602ad4aa39b32b4dab7 (diff) | |
parent | 1687c3e4d0e79adf00542c295aa1adce901a2eb9 (diff) |
Merge "Move String literal to left-hand side of equals"
Diffstat (limited to 'common/src')
-rw-r--r-- | common/src/main/java/org/onap/so/client/graphinventory/entities/DSLNodeKey.java | 4 |
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)); |