aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPooja03 <PM00501616@techmahindra.com>2018-02-06 11:58:33 +0530
committerPooja03 <PM00501616@techmahindra.com>2018-02-06 12:00:32 +0530
commite0090478d66cca38a545c3625e08cd290ff93b3d (patch)
tree56e57c469a955269bbd8605a7325a87b400101de
parentdbc8f2fc052da2f8a017990774f27f24c18241ca (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:L123 Change-Id: I52479234b39cee0cdee01655c3cf3977a42103f4 Issue-ID: DCAEGEN2-308 Signed-off-by: Pooja03 <PM00501616@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..312eaf1 100644
--- a/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java
+++ b/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java
@@ -120,7 +120,7 @@ public class DcaeServiceTypesApiServiceImpl extends DcaeServiceTypesApiService {
}
if (asdcResourceId != null) {
- if ("NONE".equals(asdcResourceId.toUpperCase(Locale.ENGLISH))) {
+ if (asdcResourceId.equalsIgnoreCase("NONE")) {
whereClauses.add("asdc_resource_id is null");
} else {
whereClauses.add(":asdcResourceId = asdc_resource_id");