From 7e12e9bff93a39ad22987b1b97e4b03736ad61e6 Mon Sep 17 00:00:00 2001 From: Pooja03 Date: Tue, 6 Feb 2018 11:06:36 +0530 Subject: Sonar Major fix Replace these toUpperCase() and equals() calls with a single equalsIgnoreCase() call in DcaeServiceTypesApiServiceImpl.java Sonar Link:https://sonar.onap.org/component_issues/index?id=org.onap.dcaegen2.platform%3Ainventory-api#resolved=false|assignees=Pooja03 Location:DcaeServiceTypesApiServiceImpl.java:L115 Change-Id: Ib4fc25a0882c28c7ff96637d84e52a0c274150f1 Issue-ID: DCAEGEN2-302 Signed-off-by: Pooja03 --- src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java b/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java index b478edf..2aa281f 100644 --- a/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java +++ b/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java @@ -112,7 +112,7 @@ public class DcaeServiceTypesApiServiceImpl extends DcaeServiceTypesApiService { } if (asdcServiceId != null) { - if ("NONE".equals(asdcServiceId.toUpperCase(Locale.ENGLISH))) { + if (asdcServiceId.equalsIgnoreCase("NONE")) { whereClauses.add("asdc_service_id is null"); } else { whereClauses.add(":asdcServiceId = asdc_service_id"); -- cgit 1.2.3-korg