summaryrefslogtreecommitdiffstats
path: root/adapters
diff options
context:
space:
mode:
authorrama-huawei <rama.subba.reddy.s@huawei.com>2017-09-22 18:54:13 +0530
committerRama SubbaReddy <rama.subba.reddy.s@huawei.com>2017-09-22 15:32:53 +0000
commitc6c40d0e152befa0b3087c838a5480a3c97b5e9a (patch)
tree35b190c6723b4785718daea6ce504e6ccc03ed13 /adapters
parent3edfd0cb8adfff9e98b4e7b4ea6c449a45bb1178 (diff)
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>
Diffstat (limited to 'adapters')
-rw-r--r--adapters/mso-catalog-db-adapter/src/main/java/org/openecomp/mso/adapters/catalogdb/catalogrest/QueryVfModules.java6
1 files changed, 3 insertions, 3 deletions
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<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 @@ public class QueryVfModules {
@Override
public String toString () {
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
boolean first = true;
int i = 1;