Ignore:
Timestamp:
2020-08-29T07:53:11+02:00 (4 years ago)
Author:
simon04
Message:

Java 8: use Comparator.comparing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/ImportAudioAction.java

    r16438 r16953  
    273273
    274274        // we must have got at least one waypoint now
    275         ((ArrayList<WayPoint>) waypoints).sort((wp, other) -> wp.compareTo(other));
     275        ((ArrayList<WayPoint>) waypoints).sort(Comparator.naturalOrder());
    276276
    277277        firstTime = -1.0; // this time of the first waypoint, not first trackpoint
Note: See TracChangeset for help on using the changeset viewer.