aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorPooja03 <PM00501616@techmahindra.com>2018-02-06 11:06:36 +0530
committerPooja03 <PM00501616@techmahindra.com>2018-02-06 11:07:49 +0530
commit7e12e9bff93a39ad22987b1b97e4b03736ad61e6 (patch)
tree5b35be67b3a1ce8fa19eb024d01072daaccbf0cb /src/main
parent91ba8a3cb383770316eafa9ee4939f3c70547063 (diff)
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 <PM00501616@techmahindra.com>
Diffstat (limited to 'src/main')
-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 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");