summaryrefslogtreecommitdiffstats
path: root/sparkybe-onap-service/src/main
diff options
context:
space:
mode:
authorPrasadNaidu <RV00493633@techmahindra.com>2018-03-28 15:33:16 +0530
committerPrasadNaidu <RV00493633@techmahindra.com>2018-03-28 15:33:35 +0530
commit32940b8f0b4ff511b848401eb8063e0529ebfeb4 (patch)
tree5fb0460ecf4f285ee08fd367998c95f13f5f97c7 /sparkybe-onap-service/src/main
parentde197e955ffb3a55de48817aa70f9bc7ef6475e5 (diff)
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 <RV00493633@techmahindra.com>
Diffstat (limited to 'sparkybe-onap-service/src/main')
-rw-r--r--sparkybe-onap-service/src/main/java/org/onap/aai/sparky/autosuggestion/sync/AutosuggestionSynchronizer.java4
1 files changed, 2 insertions, 2 deletions
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<String> suggestableValue = new ArrayList<String>();
+ List<String> 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<String>();
+ return new ArrayList<>();
}
/**