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

    r6156 r7005  
    4444
    4545    public static <T> ArrayList<T> toArrayList(Pair<T, T> p) {
    46         ArrayList<T> l = new ArrayList<T>(2);
     46        ArrayList<T> l = new ArrayList<>(2);
    4747        l.add(p.a);
    4848        l.add(p.b);
     
    7171     */
    7272    public static <U,V> Pair<U,V> create(U u, V v) {
    73         return new Pair<U,V>(u,v);
     73        return new Pair<>(u,v);
    7474    }
    7575}
Note: See TracChangeset for help on using the changeset viewer.