summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChandan Ghosh <cghosh12@in.ibm.com>2019-01-16 16:07:40 +0530
committerChandan Ghosh <cghosh12@in.ibm.com>2019-01-16 16:07:49 +0530
commitef16f4b7e711fe8563c4563634194e69b55376a4 (patch)
treed53e8dcdfd655e2a779d284e8c8c73b9522fb053 /src
parentdc2f42a535e75642cd98f349808bd5c9aef6f488 (diff)
Added sonar reported fix in MicroserviceInfo class
Added sonar reported code vulnerability Issue-ID: MSB-311 Change-Id: I04701f21bc82db2e3b3dbf036d6f1dc21eb6172c Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/msb/sdk/discovery/entity/MicroServiceInfo.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/onap/msb/sdk/discovery/entity/MicroServiceInfo.java b/src/main/java/org/onap/msb/sdk/discovery/entity/MicroServiceInfo.java
index c14d67a..61c66c3 100644
--- a/src/main/java/org/onap/msb/sdk/discovery/entity/MicroServiceInfo.java
+++ b/src/main/java/org/onap/msb/sdk/discovery/entity/MicroServiceInfo.java
@@ -14,7 +14,6 @@
package org.onap.msb.sdk.discovery.entity;
import java.io.Serializable;
-import java.util.Set;
/**
* @ClassName: MicroServiceInfo Bean
@@ -26,7 +25,7 @@ public class MicroServiceInfo extends Service<Node> implements Serializable {
private static final long serialVersionUID = 1L;
public String toString() {
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
buf.append("MicroService List:").append("\r\n");;
buf.append("serviceName:").append(getServiceName()).append("\r\n");
buf.append("version:").append(getVersion()).append("\r\n");