From 96c382cf5eb34ec49e9629ced710239b7467d944 Mon Sep 17 00:00:00 2001 From: Snigdha Sucharita Patra Date: Tue, 6 Feb 2018 10:44:15 +0530 Subject: 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 --- src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.2.3-korg