From b45e81924f8e25fa7c43c1d97521881c4085171d Mon Sep 17 00:00:00 2001 From: Sumapriya Sarvepalli Date: Tue, 14 Aug 2018 11:40:50 +0530 Subject: Sonar major issues Replace the type specification in this constructor call with the diamond operator Sonar Link: https://sonar.onap.org/project/issues?assignees=sumapriya&id=org.onap.portal.sdk%3Aepsdk-project&open=AV_om8Kg-08if2a6ufs9&resolved=false&severities=MAJOR Location: ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/gmap/line/LineCollection.java Line No: L50 L51 L160 Change-Id: Ib6ee3dcaf4b91c62c3bbb97fba2d2c270e4c8e8a Issue-ID: PORTAL-357 Signed-off-by: Sumapriya Sarvepalli --- .../java/org/onap/portalsdk/analytics/gmap/line/LineCollection.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ecomp-sdk/epsdk-analytics/src/main/java') diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/gmap/line/LineCollection.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/gmap/line/LineCollection.java index d68c9855..eee04045 100644 --- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/gmap/line/LineCollection.java +++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/gmap/line/LineCollection.java @@ -47,8 +47,8 @@ public class LineCollection { private ArrayList lineCollection; public LineCollection() { - lineCollection = new ArrayList(20000); - selectedLine = new HashSet(); + lineCollection = new ArrayList<>(20000); + selectedLine = new HashSet<>(); } public void addSelectedLine(String lineID) { @@ -157,7 +157,7 @@ public class LineCollection { } public String[] getWildCardLine(String lineID) { - ArrayList list = new ArrayList(); + ArrayList list = new ArrayList<>(); for (LineInfo lineInfo : lineCollection) { if (lineInfo.getLineID().toLowerCase().indexOf(lineID.toLowerCase()) != -1) { -- cgit 1.2.3-korg