aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwapnilPathak <SP00494485@techmahindra.com>2017-09-15 11:24:06 +0530
committerSwapnilPathak <SP00494485@techmahindra.com>2017-09-15 11:25:24 +0530
commit7ca599cb444c3896beb9318c90a460adb1f276b9 (patch)
tree2d655d987084f092ed21ef02c8726ca83695ff04
parent8dd90c302c4c2406dba22a420d30a668969d889c (diff)
Sonar Major
Move the string literal on the left side of this string comparison. Change-Id: I8086a6fc1dc24719c3ffd3785a12c086ab453ae7 Issue-ID: POLICY-230 Signed-off-by: SwapnilPathak <SP00494485@techmahindra.com>
-rw-r--r--policy-endpoints/src/main/java/org/onap/policy/drools/event/comm/bus/internal/BusConsumer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/policy-endpoints/src/main/java/org/onap/policy/drools/event/comm/bus/internal/BusConsumer.java b/policy-endpoints/src/main/java/org/onap/policy/drools/event/comm/bus/internal/BusConsumer.java
index c4155b77..8171c35d 100644
--- a/policy-endpoints/src/main/java/org/onap/policy/drools/event/comm/bus/internal/BusConsumer.java
+++ b/policy-endpoints/src/main/java/org/onap/policy/drools/event/comm/bus/internal/BusConsumer.java
@@ -310,7 +310,7 @@ public interface BusConsumer {
consumerInstance, fetchTimeout, fetchLimit, useHttps);
// super constructor sets servers = {""} if empty to avoid errors when using DME2
- if ((servers.size() == 1 && servers.get(0).equals("")) || (servers == null)
+ if ((servers.size() == 1 && ("".equals(servers.get(0)))) || (servers == null)
|| (servers.isEmpty())) {
throw new IllegalArgumentException("Must provide at least one host for HTTP AAF");
}