From 5a8b0ae790569882869247d768e5dea6348e6a2d Mon Sep 17 00:00:00 2001 From: Mariano Diaz Date: Wed, 4 Nov 2020 16:30:03 -0500 Subject: fix sonar bug Issue-ID: AAI-2877 Signed-off-by: Mariano Diaz Change-Id: I7841454d8844ca8390a6a63931b8bd35358609cb --- aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aai-traversal/src/main/java/org') 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); -- cgit 1.2.3-korg