From 32940b8f0b4ff511b848401eb8063e0529ebfeb4 Mon Sep 17 00:00:00 2001 From: PrasadNaidu Date: Wed, 28 Mar 2018 15:33:16 +0530 Subject: Replace type specification in constructor call Replace type specification in constructor call with diamond operator AutosuggestionSynchronizer.java:L392, L402 Sonar link : https://sonar.onap.org/project/issues?assignees=PrasadNaidu&id=org.onap.aai.sparky-be%3Asparky-be&open=AWGA0FuF8TZzbCgU6cp3&resolved=false Location : sparkybe-onap-service/src/main/java/org/onap/aai/sparky/autosuggestion/sync/AutosuggestionSynchronizer.java Change-Id: I3127b4541e904dd875a0ddabb191da5013f80947 Issue-ID: AAI-932 Signed-off-by: PrasadNaidu --- .../aai/sparky/autosuggestion/sync/AutosuggestionSynchronizer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sparkybe-onap-service') diff --git a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/autosuggestion/sync/AutosuggestionSynchronizer.java b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/autosuggestion/sync/AutosuggestionSynchronizer.java index aad7bcb..ab1c7af 100644 --- a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/autosuggestion/sync/AutosuggestionSynchronizer.java +++ b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/autosuggestion/sync/AutosuggestionSynchronizer.java @@ -389,7 +389,7 @@ public class AutosuggestionSynchronizer extends AbstractEntitySynchronizer if (attr != null) { suggestableAttr = Arrays.asList(attr.split(",")); - List suggestableValue = new ArrayList(); + List suggestableValue = new ArrayList<>(); for (String attribute : suggestableAttr) { if (node.get(attribute) != null && node.get(attribute).asText().length() > 0) { suggestableValue.add(attribute); @@ -399,7 +399,7 @@ public class AutosuggestionSynchronizer extends AbstractEntitySynchronizer } } - return new ArrayList(); + return new ArrayList<>(); } /** -- cgit 1.2.3-korg