diff options
author | SwapnilPathak <SP00494485@techmahindra.com> | 2017-09-20 17:30:07 +0530 |
---|---|---|
committer | SwapnilPathak <SP00494485@techmahindra.com> | 2017-09-20 17:31:28 +0530 |
commit | e367918747050eb3c989038d52dd80ad096ad3ce (patch) | |
tree | 7cb0aa1253c1611788f982805746028bb0e85233 /controlloop/common/model-impl/events/src/main/java/org | |
parent | 1d2c8738cf1e56a8a24bcc433c33a62b5041baf0 (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/model-impl/events/src/main/java/org')
-rw-r--r-- | controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEventStatus.java | 2 |
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; |