summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-analytics
diff options
context:
space:
mode:
authorSumapriya Sarvepalli <ss00493505@techmahindra.com>2018-08-14 11:40:50 +0530
committerSumapriya Sarvepalli <ss00493505@techmahindra.com>2018-08-14 11:40:50 +0530
commitb45e81924f8e25fa7c43c1d97521881c4085171d (patch)
tree31adf624d40f4b250abf878aa580e55c4bfed367 /ecomp-sdk/epsdk-analytics
parent0ed8ba7e8d89309e860a5e8dea5bb43931496e5c (diff)
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 <ss00493505@techmahindra.com>
Diffstat (limited to 'ecomp-sdk/epsdk-analytics')
-rw-r--r--ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/gmap/line/LineCollection.java6
1 files changed, 3 insertions, 3 deletions
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<LineInfo> lineCollection;
public LineCollection() {
- lineCollection = new ArrayList<LineInfo>(20000);
- selectedLine = new HashSet<String>();
+ 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<String> list = new ArrayList<String>();
+ ArrayList<String> list = new ArrayList<>();
for (LineInfo lineInfo : lineCollection) {
if (lineInfo.getLineID().toLowerCase().indexOf(lineID.toLowerCase()) != -1) {