diff options
author | Mariano Diaz <mariano.diaz@yoppworks.com> | 2020-11-04 16:30:03 -0500 |
---|---|---|
committer | Mariano Diaz <mariano.diaz@yoppworks.com> | 2020-11-04 16:30:03 -0500 |
commit | 5a8b0ae790569882869247d768e5dea6348e6a2d (patch) | |
tree | e5de431291ee6bc41c8681a1eae53f43d20ae1b0 /aai-traversal/src | |
parent | 3acdf778558129c64ae06682513469875e1c06ea (diff) |
fix sonar bug
Issue-ID: AAI-2877
Signed-off-by: Mariano Diaz <mariano.diaz@yoppworks.com>
Change-Id: I7841454d8844ca8390a6a63931b8bd35358609cb
Diffstat (limited to 'aai-traversal/src')
-rw-r--r-- | aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryBuilder.java | 2 |
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); |