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>
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) {
}
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) {