sonar Major issues 95/30295/1
authorSnigdha Sucharita Patra <sp00503415@techmahindra.com>
Mon, 5 Feb 2018 14:43:52 +0000 (20:13 +0530)
committerSnigdha Sucharita Patra <sp00503415@techmahindra.com>
Mon, 5 Feb 2018 14:43:52 +0000 (20:13 +0530)
Replace these toUpperCase()/toLowerCase() and equals() calls with a single equalsIgnoreCase() call
Sonar Link:
https://sonar.onap.org/component_issues?id=org.onap.dcaegen2.platform%3Ainventory-api#resolved=false|severities=MAJOR|assignees=Snigdha503415
Location:
src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java
Line No:162

Change-Id: I2d3514753229c9c7a3c9fc005d26d55451f90603
Issue-ID: DCAEGEN2-303
Signed-off-by: Snigdha Sucharita Patra <sp00503415@techmahindra.com>
src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java

index b478edf..b21b0e1 100644 (file)
@@ -159,7 +159,7 @@ public class DcaeServiceTypesApiServiceImpl extends DcaeServiceTypesApiService {
                 query.bind("serviceLocation", serviceLocation);
             }
 
-            if (asdcServiceId != null && !"NONE".equals(asdcServiceId.toUpperCase(Locale.ENGLISH))) {
+            if (asdcServiceId != null && !"NONE".equalsIgnoreCase(asdcServiceId)) {
                 query.bind("asdcServiceId", asdcServiceId);
             }