aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariano Diaz <mariano.diaz@yoppworks.com>2020-11-04 16:30:03 -0500
committerMariano Diaz <mariano.diaz@yoppworks.com>2020-11-04 16:30:03 -0500
commit5a8b0ae790569882869247d768e5dea6348e6a2d (patch)
treee5de431291ee6bc41c8681a1eae53f43d20ae1b0
parent3acdf778558129c64ae06682513469875e1c06ea (diff)
fix sonar bug
Issue-ID: AAI-2877 Signed-off-by: Mariano Diaz <mariano.diaz@yoppworks.com> Change-Id: I7841454d8844ca8390a6a63931b8bd35358609cb
-rw-r--r--aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryBuilder.java b/aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryBuilder.java
index 649826e..d5b365e 100644
--- a/aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryBuilder.java
+++ b/aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryBuilder.java
@@ -303,7 +303,7 @@ public class DslQueryBuilder {
convertedValue = String.valueOf(castLong);
}
else if (classType.equals(Boolean.class.getName())) {
- if (convertedValue.equals("1")) { // checking for integer true value
+ if ("1".equals(convertedValue)) { // checking for integer true value
convertedValue = "true";
}
boolean castBoolean = Boolean.parseBoolean(convertedValue);