Ignore:
Timestamp:
2014-04-26T17:39:23+02:00 (11 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/util/ValUtil.java

    r6869 r7005  
    4040        Node n2 = w.getNode(w.getNodesCount() - 1);
    4141
    42         List<List<Way>> cells = new ArrayList<List<Way>>(2);
    43         Set<Point2D> cellNodes = new HashSet<Point2D>();
     42        List<List<Way>> cells = new ArrayList<>(2);
     43        Set<Point2D> cellNodes = new HashSet<>();
    4444        Point2D cell;
    4545
     
    5555        List<Way> ways = cellWays.get(cell);
    5656        if (ways == null) {
    57             ways = new ArrayList<Way>();
     57            ways = new ArrayList<>();
    5858            cellWays.put(cell, ways);
    5959        }
     
    6666            ways = cellWays.get( cell );
    6767            if (ways == null) {
    68                 ways = new ArrayList<Way>();
     68                ways = new ArrayList<>();
    6969                cellWays.put(cell, ways);
    7070            }
     
    8484            ways = cellWays.get(cell);
    8585            if (ways == null) {
    86                 ways = new ArrayList<Way>();
     86                ways = new ArrayList<>();
    8787                cellWays.put(cell, ways);
    8888            }
     
    9696            ways = cellWays.get(cell);
    9797            if (ways == null) {
    98                 ways = new ArrayList<Way>();
     98                ways = new ArrayList<>();
    9999                cellWays.put(cell, ways);
    100100            }
     
    134134        CheckParameterUtil.ensureParameterNotNull(en1, "en1");
    135135        CheckParameterUtil.ensureParameterNotNull(en2, "en2");
    136         List<Point2D> cells = new ArrayList<Point2D>();
     136        List<Point2D> cells = new ArrayList<>();
    137137        double x0 = en1.east() * gridDetail;
    138138        double x1 = en2.east() * gridDetail;
Note: See TracChangeset for help on using the changeset viewer.