Ignore:
Timestamp:
2015-11-30T08:36:35+01:00 (4 years ago)
Author:
Don-vip
Message:

Sonar - squid:S2293 - The diamond operator ("<>") should be used

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/NoteReader.java

    r9059 r9070  
    7373            case "osm":
    7474                parseMode = NoteParseMode.API;
    75                 notes = new ArrayList<Note>(100);
     75                notes = new ArrayList<>(100);
    7676                return;
    7777            case "osm-notes":
    7878                parseMode = NoteParseMode.DUMP;
    79                 notes = new ArrayList<Note>(10000);
     79                notes = new ArrayList<>(10000);
    8080                return;
    8181            }
  • trunk/src/org/openstreetmap/josm/io/OsmServerLocationReader.java

    r8840 r9070  
    178178            in = getInputStream(url, progressMonitor.createSubTaskMonitor(1, true));
    179179            if (in == null) {
    180                 return new ArrayList<Note>();
     180                return new ArrayList<>();
    181181            }
    182182            progressMonitor.subTask(tr("Downloading OSM notes..."));
Note: See TracChangeset for help on using the changeset viewer.