From ef16f4b7e711fe8563c4563634194e69b55376a4 Mon Sep 17 00:00:00 2001 From: Chandan Ghosh Date: Wed, 16 Jan 2019 16:07:40 +0530 Subject: Added sonar reported fix in MicroserviceInfo class Added sonar reported code vulnerability Issue-ID: MSB-311 Change-Id: I04701f21bc82db2e3b3dbf036d6f1dc21eb6172c Signed-off-by: Chandan Ghosh --- src/main/java/org/onap/msb/sdk/discovery/entity/MicroServiceInfo.java | 3 +-- 1 file changed, 1 insertion(+), 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 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"); -- cgit 1.2.3-korg