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 <rama.subba.reddy.s@huawei.com>
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 3ffb0c6..46b8f31 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 @@
private static MsoLogger LOGGER = MsoLogger.getMsoLogger (MsoLogger.Catalog.RA);
private List<VfModule> vfModules;
- public QueryVfModules() { super(); vfModules = new ArrayList<VfModule>(); }
+ public QueryVfModules() { super(); vfModules = new ArrayList<>(); }
public QueryVfModules(List<VfModule> vlist) {
LOGGER.debug ("QueryVfModules:");
- vfModules = new ArrayList<VfModule>();
+ vfModules = new ArrayList<>();
for (VfModule o : vlist) {
LOGGER.debug ("-- o is a vfModules ----");
LOGGER.debug (o.toString());
@@ -55,7 +55,7 @@
@Override
public String toString () {
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
boolean first = true;
int i = 1;