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:162
Change-Id: I2d3514753229c9c7a3c9fc005d26d55451f90603
Issue-ID: DCAEGEN2-303
Signed-off-by: Snigdha Sucharita Patra <sp00503415@techmahindra.com>
query.bind("serviceLocation", serviceLocation);
}
- if (asdcServiceId != null && !"NONE".equals(asdcServiceId.toUpperCase(Locale.ENGLISH))) {
+ if (asdcServiceId != null && !"NONE".equalsIgnoreCase(asdcServiceId)) {
query.bind("asdcServiceId", asdcServiceId);
}