summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
de197e9)
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>
if (attr != null) {
suggestableAttr = Arrays.asList(attr.split(","));
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);
for (String attribute : suggestableAttr) {
if (node.get(attribute) != null && node.get(attribute).asText().length() > 0) {
suggestableValue.add(attribute);
- return new ArrayList<String>();
+ return new ArrayList<>();