sonar Major issues 65/30365/1
authorSnigdha Sucharita Patra <sp00503415@techmahindra.com>
Tue, 6 Feb 2018 03:48:36 +0000 (09:18 +0530)
committerSnigdha Sucharita Patra <sp00503415@techmahindra.com>
Tue, 6 Feb 2018 03:48:36 +0000 (09:18 +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-166

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

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