Sonar Major: Replace the type specification. 07/27807/1
authoraishkashyap <as00476394@techmahindra.com>
Wed, 10 Jan 2018 08:10:34 +0000 (13:40 +0530)
committeraishkashyap <as00476394@techmahindra.com>
Wed, 10 Jan 2018 08:10:55 +0000 (13:40 +0530)
Replace the type specification in this constructor call with the diamond operator

Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.aai.traversal%3Atraversal#resolved=false|assigned=false

Location:
src/main/java/org/onap/aai/util/MakeNamedQuery.java

Line No:78

Issue-ID: AAI-620
Change-Id: Ied0e7d3d1172bc7cb2f380c3ea6eb7b827e7e1f7
Signed-off-by: aishkashyap <as00476394@techmahindra.com>
aai-traversal/src/main/java/org/onap/aai/util/MakeNamedQuery.java

index fde25a7..a88ab1b 100644 (file)
@@ -75,7 +75,7 @@ public class MakeNamedQuery {
 
                // iterate the collection of resources
 
-               ArrayList<String> processedWidgets = new ArrayList<String>();
+               ArrayList<String> processedWidgets = new ArrayList<>();
 
 
                HashMap<String, List<Introspector>> widgetToRelationship = new HashMap<String, List<Introspector>>();