summaryrefslogtreecommitdiffstats
path: root/controlloop/common
diff options
context:
space:
mode:
authorSwapnilPathak <SP00494485@techmahindra.com>2017-09-20 17:30:07 +0530
committerSwapnilPathak <SP00494485@techmahindra.com>2017-09-20 17:31:28 +0530
commite367918747050eb3c989038d52dd80ad096ad3ce (patch)
tree7cb0aa1253c1611788f982805746028bb0e85233 /controlloop/common
parent1d2c8738cf1e56a8a24bcc433c33a62b5041baf0 (diff)
Fix for Sonar major issues
Move the String literal on left side of string comparison. Issue-ID: POLICY-249 Change-Id: I8086a6fc1dc24719c3ffd3785a12c086ab555ae9 Signed-off-by: SwapnilPathak <SP00494485@techmahindra.com>
Diffstat (limited to 'controlloop/common')
-rw-r--r--controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEventStatus.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEventStatus.java b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEventStatus.java
index f74b626cb..c51fe3980 100644
--- a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEventStatus.java
+++ b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEventStatus.java
@@ -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;