commit | e367918747050eb3c989038d52dd80ad096ad3ce | [log] [tgz] |
---|---|---|
author | SwapnilPathak <SP00494485@techmahindra.com> | Wed Sep 20 17:30:07 2017 +0530 |
committer | SwapnilPathak <SP00494485@techmahindra.com> | Wed Sep 20 17:31:28 2017 +0530 |
tree | 7cb0aa1253c1611788f982805746028bb0e85233 | |
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>
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 f74b626..c51fe39 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 @@ // // In case DCAE uses the old abatement // - if (status.equalsIgnoreCase("abatement")) { + if ("abatement".equalsIgnoreCase(status)) { return ABATED; } return null;