From: Snigdha Sucharita Patra Date: Mon, 5 Feb 2018 14:43:52 +0000 (+0530) Subject: sonar Major issues X-Git-Tag: 2.0.0-ONAP~12^2~11 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=c58884534449ce6e5e4442f5f11b2bacdbb1acc0;p=dcaegen2%2Fplatform%2Finventory-api.git 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:162 Change-Id: I2d3514753229c9c7a3c9fc005d26d55451f90603 Issue-ID: DCAEGEN2-303 Signed-off-by: Snigdha Sucharita Patra --- diff --git a/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java b/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java index b478edf..b21b0e1 100644 --- a/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java +++ b/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java @@ -159,7 +159,7 @@ public class DcaeServiceTypesApiServiceImpl extends DcaeServiceTypesApiService { query.bind("serviceLocation", serviceLocation); } - if (asdcServiceId != null && !"NONE".equals(asdcServiceId.toUpperCase(Locale.ENGLISH))) { + if (asdcServiceId != null && !"NONE".equalsIgnoreCase(asdcServiceId)) { query.bind("asdcServiceId", asdcServiceId); }