Fix for Sonar major issues 67/13867/1
authorSwapnilPathak <SP00494485@techmahindra.com>
Wed, 20 Sep 2017 12:00:07 +0000 (17:30 +0530)
committerSwapnilPathak <SP00494485@techmahindra.com>
Wed, 20 Sep 2017 12:01:28 +0000 (17:31 +0530)
Move the String literal on left side of string comparison.

Issue-ID: POLICY-249
Change-Id: I8086a6fc1dc24719c3ffd3785a12c086ab555ae9
Signed-off-by: SwapnilPathak <SP00494485@techmahindra.com>
controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEventStatus.java

index f74b626..c51fe39 100644 (file)
@@ -45,7 +45,7 @@ public enum ControlLoopEventStatus {
                //
                // In case DCAE uses the old abatement
                //
-               if (status.equalsIgnoreCase("abatement")) {
+               if ("abatement".equalsIgnoreCase(status)) {
                        return ABATED;
                }
                return null;