aboutsummaryrefslogtreecommitdiffstats
path: root/dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main
diff options
context:
space:
mode:
authorrama-huawei <rama.subba.reddy.s@huawei.com>2017-09-08 09:25:05 +0530
committerRama SubbaReddy <rama.subba.reddy.s@huawei.com>2017-09-08 04:55:10 +0000
commit473c10bd8a0b25cc2848592c52d9091842f0d199 (patch)
treed8c6376cecf455ba35b23edbf6c75a58060cf6dd /dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main
parentc35e203b30c5c8ea41ad2ed6c0b0b229533b8e08 (diff)
Fix for Sonar major issues
DCAEGEN2-93 Change-Id: I482a1ab9e3c131792744b2ca1624aaa71f4b6dfe Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main')
-rw-r--r--dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/java/org/openecomp/dcae/controller/service/cdap/cluster/servers/manager/DcaeCdapClusterManagerProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/java/org/openecomp/dcae/controller/service/cdap/cluster/servers/manager/DcaeCdapClusterManagerProvider.java b/dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/java/org/openecomp/dcae/controller/service/cdap/cluster/servers/manager/DcaeCdapClusterManagerProvider.java
index 525412d..42d6955 100644
--- a/dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/java/org/openecomp/dcae/controller/service/cdap/cluster/servers/manager/DcaeCdapClusterManagerProvider.java
+++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/java/org/openecomp/dcae/controller/service/cdap/cluster/servers/manager/DcaeCdapClusterManagerProvider.java
@@ -52,7 +52,7 @@ public class DcaeCdapClusterManagerProvider extends DcaeVirtualMachineManagerPro
@Override
public HealthTestResponse test() {
String s = run(o.getHealthCheckScript(), o.getTestTimeout());
- String a[] = s.trim().split(":");
+ String[] a = s.trim().split(":");
int index = s.trim().indexOf(":");
String msg = index < 0 ? null : s.substring(index);
HealthTestResponse res = ServiceFactory.eINSTANCE.createHealthTestResponse();