Sonar Major fix 79/30379/1
authorPooja03 <PM00501616@techmahindra.com>
Tue, 6 Feb 2018 05:36:36 +0000 (11:06 +0530)
committerPooja03 <PM00501616@techmahindra.com>
Tue, 6 Feb 2018 05:37:49 +0000 (11:07 +0530)
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 <PM00501616@techmahindra.com>
src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java

index b478edf..2aa281f 100644 (file)
@@ -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");