Ignore:
Timestamp:
2014-04-26T17:39:23+02:00 (12 years ago)
Author:
Don-vip
Message:

see #8465 - use diamond operator where applicable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java

    r6937 r7005  
    111111
    112112    private void testWrongRoundabout(Way w) {
    113         Map<String, List<Way>> map = new HashMap<String, List<Way>>();
     113        Map<String, List<Way>> map = new HashMap<>();
    114114        // Count all highways (per type) connected to this roundabout, except links
    115115        // As roundabouts are closed ways, take care of not processing the first/last node twice
    116         for (Node n : new HashSet<Node>(w.getNodes())) {
     116        for (Node n : new HashSet<>(w.getNodes())) {
    117117            for (Way h : Utils.filteredCollection(n.getReferrers(), Way.class)) {
    118118                String value = h.get("highway");
     
    120120                    List<Way> list = map.get(value);
    121121                    if (list == null) {
    122                         map.put(value, list = new ArrayList<Way>());
     122                        map.put(value, list = new ArrayList<>());
    123123                    }
    124124                    list.add(h);
     
    150150        }
    151151
    152         final HashSet<OsmPrimitive> referrers = new HashSet<OsmPrimitive>();
     152        final HashSet<OsmPrimitive> referrers = new HashSet<>();
    153153        referrers.addAll(way.firstNode().getReferrers());
    154154        referrers.addAll(way.lastNode().getReferrers());
Note: See TracChangeset for help on using the changeset viewer.