Ignore:
Timestamp:
2016-07-26T02:17:04+02:00 (5 years ago)
Author:
Don-vip
Message:

see #11390 - use functional comparators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/I18n.java

    r10627 r10647  
    1616import java.util.Arrays;
    1717import java.util.Collection;
     18import java.util.Comparator;
    1819import java.util.HashMap;
    1920import java.util.Locale;
     
    381382        Locale[] l = new Locale[v.size()];
    382383        l = v.toArray(l);
    383         Arrays.sort(l, (o1, o2) -> o1.toString().compareTo(o2.toString()));
     384        Arrays.sort(l, Comparator.comparing(Locale::toString));
    384385        return l;
    385386    }
Note: See TracChangeset for help on using the changeset viewer.