summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2018-12-28 02:44:17 +0000
committerGerrit Code Review <gerrit@onap.org>2018-12-28 02:44:17 +0000
commitbdc48a7ab30a1d0de177760b172c7fe457b403e6 (patch)
treefcd41a8abfba6b0702558da527b0c55dba84b1d1
parente176a48236b1f3ffa1b92d23416c86fef1757d9a (diff)
parent1aed4dcc66c754d6ee031aba47acad8faa7fb3f6 (diff)
Merge "fixed sonar issues in ConfigureNodeExecutor.java"
-rw-r--r--sli/provider-base/src/main/java/org/onap/ccsdk/sli/core/sli/provider/base/ConfigureNodeExecutor.java22
1 files changed, 12 insertions, 10 deletions
diff --git a/sli/provider-base/src/main/java/org/onap/ccsdk/sli/core/sli/provider/base/ConfigureNodeExecutor.java b/sli/provider-base/src/main/java/org/onap/ccsdk/sli/core/sli/provider/base/ConfigureNodeExecutor.java
index 7ffdfcaf7..5d6a08391 100644
--- a/sli/provider-base/src/main/java/org/onap/ccsdk/sli/core/sli/provider/base/ConfigureNodeExecutor.java
+++ b/sli/provider-base/src/main/java/org/onap/ccsdk/sli/core/sli/provider/base/ConfigureNodeExecutor.java
@@ -40,6 +40,8 @@ public class ConfigureNodeExecutor extends AbstractSvcLogicNodeExecutor {
private static final Logger LOG = LoggerFactory
.getLogger(ConfigureNodeExecutor.class);
private static final String CAUGHT_EXCEPTION_MSG="Caught exception from ";
+ private static final String ALREADY_ACTIVE= "already-active";
+ private static final String NOT_FOUND= "not-found";
public SvcLogicNode execute(SvcLogicServiceBase svc, SvcLogicNode node,
SvcLogicContext ctx) throws SvcLogicException {
@@ -108,10 +110,10 @@ public class ConfigureNodeExecutor extends AbstractSvcLogicNodeExecutor {
case SUCCESS:
break;
case ALREADY_ACTIVE:
- outValue = "already-active";
+ outValue = ALREADY_ACTIVE;
break;
case NOT_FOUND:
- outValue = "not-found";
+ outValue = NOT_FOUND;
break;
case NOT_READY:
outValue = "not-ready";
@@ -134,10 +136,10 @@ public class ConfigureNodeExecutor extends AbstractSvcLogicNodeExecutor {
case SUCCESS:
break;
case ALREADY_ACTIVE:
- outValue = "already-active";
+ outValue = ALREADY_ACTIVE;
break;
case NOT_FOUND:
- outValue = "not-found";
+ outValue = NOT_FOUND;
break;
case NOT_READY:
outValue = "not-ready";
@@ -150,10 +152,10 @@ public class ConfigureNodeExecutor extends AbstractSvcLogicNodeExecutor {
}
break;
case ALREADY_ACTIVE:
- outValue = "already-active";
+ outValue = ALREADY_ACTIVE;
break;
case NOT_FOUND:
- outValue = "not-found";
+ outValue = NOT_FOUND;
break;
case NOT_READY:
outValue = "not-ready";
@@ -177,10 +179,10 @@ public class ConfigureNodeExecutor extends AbstractSvcLogicNodeExecutor {
outValue = "success";
break;
case ALREADY_ACTIVE:
- outValue = "already-active";
+ outValue = ALREADY_ACTIVE;
break;
case NOT_FOUND:
- outValue = "not-found";
+ outValue = NOT_FOUND;
break;
case NOT_READY:
outValue = "not-ready";
@@ -203,10 +205,10 @@ public class ConfigureNodeExecutor extends AbstractSvcLogicNodeExecutor {
outValue = "success";
break;
case ALREADY_ACTIVE:
- outValue = "already-active";
+ outValue = ALREADY_ACTIVE;
break;
case NOT_FOUND:
- outValue = "not-found";
+ outValue = NOT_FOUND;
break;
case NOT_READY:
outValue = "not-ready";