From c6c40d0e152befa0b3087c838a5480a3c97b5e9a Mon Sep 17 00:00:00 2001 From: rama-huawei Date: Fri, 22 Sep 2017 18:54:13 +0530 Subject: Replaced with diamond operator Replace the synchronized class "StringBuffer" by an unsynchronized one such as "StringBuilder" Issue-Id:SO-118 Change-Id: Ica8ce815a834fcb8195e16096972b6f1627d7214 Signed-off-by: rama-huawei --- .../mso/adapters/catalogdb/catalogrest/QueryVfModules.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'adapters/mso-catalog-db-adapter/src/main') diff --git a/adapters/mso-catalog-db-adapter/src/main/java/org/openecomp/mso/adapters/catalogdb/catalogrest/QueryVfModules.java b/adapters/mso-catalog-db-adapter/src/main/java/org/openecomp/mso/adapters/catalogdb/catalogrest/QueryVfModules.java index 3ffb0c6744..46b8f31046 100644 --- a/adapters/mso-catalog-db-adapter/src/main/java/org/openecomp/mso/adapters/catalogdb/catalogrest/QueryVfModules.java +++ b/adapters/mso-catalog-db-adapter/src/main/java/org/openecomp/mso/adapters/catalogdb/catalogrest/QueryVfModules.java @@ -37,10 +37,10 @@ public class QueryVfModules { private static MsoLogger LOGGER = MsoLogger.getMsoLogger (MsoLogger.Catalog.RA); private List vfModules; - public QueryVfModules() { super(); vfModules = new ArrayList(); } + public QueryVfModules() { super(); vfModules = new ArrayList<>(); } public QueryVfModules(List vlist) { LOGGER.debug ("QueryVfModules:"); - vfModules = new ArrayList(); + vfModules = new ArrayList<>(); for (VfModule o : vlist) { LOGGER.debug ("-- o is a vfModules ----"); LOGGER.debug (o.toString()); @@ -55,7 +55,7 @@ public class QueryVfModules { @Override public String toString () { - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); boolean first = true; int i = 1; -- cgit 1.2.3-korg