summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorSnigdha Sucharita Patra <sp00503415@techmahindra.com>2018-02-06 13:35:16 +0530
committerSnigdha Sucharita Patra <sp00503415@techmahindra.com>2018-02-06 13:35:16 +0530
commit601cee7faa0864f908701b961f926f5cfe5ab57f (patch)
tree557a593e4120859f7a8749725c4b75992cfd8c9a /src/main/java
parent96c382cf5eb34ec49e9629ced710239b7467d944 (diff)
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-108 Change-Id: I7a21f8c847cdbdfe17aa54919859ef60e265caf9 Issue-ID: DCAEGEN2-307 Signed-off-by: Snigdha Sucharita Patra <sp00503415@techmahindra.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java
index 90c2435..ae613da 100644
--- a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java
+++ b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java
@@ -105,7 +105,7 @@ public class DcaeServicesApiServiceImpl extends DcaeServicesApiService {
LOG.warn(String.format("%s, %s", e.getMessage(), sco.toString()), e);
}
}
- } else if (COMPONENT_SOURCE_DATA_BUS_CONTROLLER.equals(sco.getComponentSource().toUpperCase(Locale.ENGLISH))) {
+ } else if (COMPONENT_SOURCE_DATA_BUS_CONTROLLER.equalsIgnoreCase(sco.getComponentSource())) {
if (this.databusControllerClient != null) {
try {
if (this.databusControllerClient.isExists(sco.getComponentId())) {