From: Snigdha Sucharita Patra Date: Tue, 6 Feb 2018 05:14:15 +0000 (+0530) Subject: sonar Major issues X-Git-Tag: 2.0.0-ONAP~12^2~9 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=96c382cf5eb34ec49e9629ced710239b7467d944;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/DcaeServicesApiServiceImpl.java Line No-93 Change-Id: I5d7ec72053255053ebf2c0a434cb8461a703f299 Issue-ID: DCAEGEN2-306 Signed-off-by: Snigdha Sucharita Patra --- diff --git a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java index bc1888f..90c2435 100644 --- a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java +++ b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java @@ -90,7 +90,7 @@ public class DcaeServicesApiServiceImpl extends DcaeServicesApiService { // TODO: When putting together the components fail. Should this be a 500 case? // For now, this is just logged as a warning. - if (COMPONENT_SOURCE_DCAE_CONTROLLER.equals(sco.getComponentSource().toUpperCase(Locale.ENGLISH))) { + if (COMPONENT_SOURCE_DCAE_CONTROLLER.equalsIgnoreCase(sco.getComponentSource())) { if (this.dcaeControllerClient != null) { try { DCAEControllerClient.ServiceInstance serviceInstance