diff options
author | vasraz <vasyl.razinkov@est.tech> | 2019-11-20 17:32:02 +0000 |
---|---|---|
committer | Ofir Sonsino <ofir.sonsino@intl.att.com> | 2019-11-25 08:21:43 +0000 |
commit | 60be4e21f1ada02fbbdb39cc47ff1c69c098a00a (patch) | |
tree | 8d05c95e8b856255564fd6f9f1e1c096f77b5567 /common-app-api/src/main/java/org/openecomp | |
parent | fe540e1d6e3f0155741a4b4bc48f5ec56f114852 (diff) |
Fix Sonar issue
Major SmellCode:
Replace StringBuffer with StringBuilder
Change-Id: I0283e5160e5c1f23423c66110015f18c8163411e
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-2670
Diffstat (limited to 'common-app-api/src/main/java/org/openecomp')
-rw-r--r-- | common-app-api/src/main/java/org/openecomp/sdc/common/util/ValidationUtils.java | 8 |
1 files changed, 4 insertions, 4 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); } |