diff options
author | Snigdha Sucharita Patra <sp00503415@techmahindra.com> | 2018-02-06 09:18:36 +0530 |
---|---|---|
committer | Snigdha Sucharita Patra <sp00503415@techmahindra.com> | 2018-02-06 09:18:36 +0530 |
commit | fc532cd87e2ddc8a877a142b8104168875c01c34 (patch) | |
tree | a5df815025bcc371f578b1bfb7225d2c5a65b96b /src/main/java | |
parent | c58884534449ce6e5e4442f5f11b2bacdbb1acc0 (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>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java | 2 |
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); } |