summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-analytics
diff options
context:
space:
mode:
authorburdziak <olaf.burdziakowski@nokia.com>2019-04-16 13:53:43 +0200
committerburdziak <olaf.burdziakowski@nokia.com>2019-04-16 13:53:43 +0200
commit842d970675f5f0d69ceee98052ce582a510fc467 (patch)
tree53c484849a6adbe46bf8f34166946c3a4e6255da /ecomp-sdk/epsdk-analytics
parent2c6c55376190b63c8bcb76ba876b0a54f9d4fcc5 (diff)
Fix sonar issues in RaptorObject
Change-Id: I146a5f6fbc51d320e3d93dc17f133d4e687e8a1f Issue-ID: PORTAL-523 Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
Diffstat (limited to 'ecomp-sdk/epsdk-analytics')
-rw-r--r--ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/RaptorObject.java6
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