From 1beaa908abebcb3d0f5a8ac7e80e3604d5b9f638 Mon Sep 17 00:00:00 2001
From: Munir Ahmad <munir.ahmad@bell.ca>
Date: Sat, 24 Feb 2018 12:34:32 -0500
Subject: Swap StringBuffer with StringBuilder everywhere

Change-Id: Ia1f8d3ebc4026179bf08cdb0bd71c4480b8481df
Issue-ID: SO-437
Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
---
 .../src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java   | 2 +-
 common/src/main/java/org/openecomp/mso/utils/CryptoUtils.java           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'common/src/main/java/org/openecomp/mso')

diff --git a/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java b/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java
index c0997f31d9..cf69e1c5a7 100644
--- a/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java
+++ b/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java
@@ -159,7 +159,7 @@ public class MsoJsonProperties extends AbstractMsoProperties {
 
 	@Override
 	public String toString() {
-		StringBuffer response = new StringBuffer();
+		StringBuilder response = new StringBuilder();
 		response.append("Config file " + propertiesFileName + "(Timer:" + automaticRefreshInMinutes + "mins):"
 				+ System.getProperty("line.separator"));
 		response.append(this.jsonRootNode.toString());
diff --git a/common/src/main/java/org/openecomp/mso/utils/CryptoUtils.java b/common/src/main/java/org/openecomp/mso/utils/CryptoUtils.java
index 55fe69bb9a..5d0ff5b79e 100644
--- a/common/src/main/java/org/openecomp/mso/utils/CryptoUtils.java
+++ b/common/src/main/java/org/openecomp/mso/utils/CryptoUtils.java
@@ -72,7 +72,7 @@ public final class CryptoUtils {
     }
 
     public static String byteArrayToHexString (byte[] b) {
-        StringBuffer sb = new StringBuffer (b.length * 2);
+        StringBuilder sb = new StringBuilder(b.length * 2);
         for (byte aB : b) {
             int v = aB & 0xff;
             if (v < 16) {
-- 
cgit 1.2.3-korg