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>
query.bind("asdcServiceId", asdcServiceId);
}
- if (asdcResourceId != null && !"NONE".equals(asdcResourceId.toUpperCase(Locale.ENGLISH))) {
+ if (asdcResourceId != null && !"NONE".equalsIgnoreCase(asdcResourceId)) {
query.bind("asdcResourceId", asdcResourceId);
}