summaryrefslogtreecommitdiffstats
path: root/common-app-api
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java8
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java2
2 files changed, 5 insertions, 5 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java b/common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java
index 6633148485..988f215a72 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java
@@ -383,7 +383,7 @@ public class ValidationUtils {
public static String normaliseComponentName(String name) {
String[] split = splitComponentName(name);
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
for (String splitElement : split) {
sb.append(splitElement);
}
@@ -393,7 +393,7 @@ public class ValidationUtils {
public static String normalizeComponentInstanceName(String name) {
String[] split = splitComponentInstanceName(name);
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
for (String splitElement : split) {
sb.append(splitElement);
}
@@ -415,7 +415,7 @@ public class ValidationUtils {
public static String convertToSystemName(String name) {
String[] split = splitComponentName(name);
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
for (String splitElement : split) {
String capitalize = WordUtils.capitalize(splitElement);
sb.append(capitalize);
@@ -531,7 +531,7 @@ public class ValidationUtils {
public static String normaliseProductName(String name) {
String[] split = splitComponentName(PRODUCT_NAME_DELIMETER_PATTERN, name);
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
for (String splitElement : split) {
sb.append(splitElement);
}
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java
index 9806bffc5e..fadb9d47aa 100644
--- a/common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java
@@ -475,7 +475,7 @@ public class CommonUtilsTest {
@Test
public void yamlValidTest() {
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
sb.append("key: \"!@;/?:&=+$,_.~*'()[]\"");
byte[] payload = sb.toString().getBytes();