diff options
author | Manoop Talasila <talasila@research.att.com> | 2019-04-16 21:13:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-16 21:13:40 +0000 |
commit | 0e2e2c144d097c4d2c4f9f330fb1968c1fe84c17 (patch) | |
tree | ebccd3f464a63ccf9d5fff4eb963851b8c7fb6d2 | |
parent | 35b03e24e52e2b9dc9e572aaff151c34c8bf271f (diff) | |
parent | 842d970675f5f0d69ceee98052ce582a510fc467 (diff) |
Merge "Fix sonar issues in RaptorObject"
-rw-r--r-- | ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/RaptorObject.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/RaptorObject.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/RaptorObject.java index 8b968cc8..fd5fdba1 100644 --- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/RaptorObject.java +++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/RaptorObject.java @@ -44,7 +44,7 @@ public class RaptorObject extends java.lang.Object { } protected String nvl(String s, String sDefault) { - return nvl(s).equals("") ? sDefault : s; + return nvl(s).isEmpty() ? sDefault : s; } protected static String nvls(String s) { @@ -52,11 +52,11 @@ public class RaptorObject extends java.lang.Object { } protected static String nvls(String s, String sDefault) { - return nvls(s).equals("") ? sDefault : s; + return nvls(s).isEmpty() ? sDefault : s; } protected boolean getFlagInBoolean(String s) { - return nvl(s).toUpperCase().startsWith("Y") || nvl(s).toLowerCase().equals("true"); + return nvl(s).toUpperCase().startsWith("Y") || "true".equalsIgnoreCase(nvl(s)); } } // RaptorObject |