Move string literal to left side of comparison 89/28989/1
authorSwapnali Pode <SP00501638@techmahindra.com>
Wed, 24 Jan 2018 06:53:22 +0000 (12:23 +0530)
committerSwapnali Pode <SP00501638@techmahindra.com>
Wed, 24 Jan 2018 07:01:39 +0000 (12:31 +0530)
Move true string literal on the left side of this string comparison
ExtsysApp.java:L56

Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.aai.esr-server%3Aaai-esr-server#resolved=false|assignees=swapnalipode
Location:
src/main/java/org/onap/aai/esr/ExtsysApp.java

Change-Id: I82e43ca7a68322c6d409ecc113932e289721c374
Issue-ID: AAI-691
Signed-off-by: Swapnali Pode <SP00501638@techmahindra.com>
esr-mgr/src/main/java/org/onap/aai/esr/ExtsysApp.java

index 5b1f6cd..358fb07 100644 (file)
@@ -53,7 +53,7 @@ public class ExtsysApp extends Application<ExtsysAppConfiguration> {
         environment.jersey().register(new VimManager());
         environment.jersey().register(new VnfmManager());
         environment.jersey().register(new ServiceTest());
-        if (configuration.getRegistByHand().equals("true")) {
+        if ("true".equals(configuration.getRegistByHand())) {
             String MSB_IP = configuration.getMsbDiscoveryIp();
             Integer MSB_Port = Integer.valueOf(configuration.getMsbDiscoveryPort());
             MSBServiceClient msbClient = new MSBServiceClient(MSB_IP, MSB_Port);