diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2017-09-20 10:54:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-20 10:54:52 +0000 |
commit | 2face1b21badbca136b79d841a64a6278249af49 (patch) | |
tree | 6c23bcbfb252dd32ed4c567b1180bf15d31fcab2 /controlloop/common/model-impl/appc | |
parent | 470042454202460c08eba7d83f04b1009fe84a73 (diff) | |
parent | d7779de1e79a8ce9526e564dcb3bdee9bb570b4b (diff) |
Merge "Fix Major sonar issues"
Diffstat (limited to 'controlloop/common/model-impl/appc')
-rw-r--r-- | controlloop/common/model-impl/appc/src/main/java/org/onap/policy/appc/ResponseValue.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/controlloop/common/model-impl/appc/src/main/java/org/onap/policy/appc/ResponseValue.java b/controlloop/common/model-impl/appc/src/main/java/org/onap/policy/appc/ResponseValue.java index 4de0f81f9..7bd745936 100644 --- a/controlloop/common/model-impl/appc/src/main/java/org/onap/policy/appc/ResponseValue.java +++ b/controlloop/common/model-impl/appc/src/main/java/org/onap/policy/appc/ResponseValue.java @@ -33,25 +33,26 @@ public enum ResponseValue { private ResponseValue(String value) { this.value = value; } - + + @Override public String toString() { return this.value; } public static ResponseValue toResponseValue(String value) { - if (value.toString().equals(ACCEPT.toString())) { + if (value.equals(ACCEPT.toString())) { return ACCEPT; } - if (value.toString().equals(ERROR.toString())) { + if (value.equals(ERROR.toString())) { return ERROR; } - if (value.toString().equals(REJECT.toString())) { + if (value.equals(REJECT.toString())) { return REJECT; } - if (value.toString().equals(SUCCESS.toString())) { + if (value.equals(SUCCESS.toString())) { return SUCCESS; } - if (value.toString().equals(FAILURE.toString())) { + if (value.equals(FAILURE.toString())) { return FAILURE; } |