summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSnigdha Sucharita Patra <sp00503415@techmahindra.com>2018-02-06 09:18:36 +0530
committerSnigdha Sucharita Patra <sp00503415@techmahindra.com>2018-02-06 09:18:36 +0530
commitfc532cd87e2ddc8a877a142b8104168875c01c34 (patch)
treea5df815025bcc371f578b1bfb7225d2c5a65b96b
parentc58884534449ce6e5e4442f5f11b2bacdbb1acc0 (diff)
sonar Major issues
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>
-rw-r--r--src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java b/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java
index b21b0e1..c3be670 100644
--- a/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java
+++ b/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java
@@ -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);
}