Changeset 10647 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2016-07-26T02:17:04+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r10627 r10647 24 24 import java.util.Collection; 25 25 import java.util.Collections; 26 import java.util.Comparator; 26 27 import java.util.HashMap; 27 28 import java.util.HashSet; … … 745 746 // lower the value of "stage" the earlier the plugin should be loaded. 746 747 // 747 toLoad.sort((o1, o2) -> { 748 if (o1.stage < o2.stage) return -1; 749 if (o1.stage == o2.stage) return 0; 750 return 1; 751 } 752 ); 748 toLoad.sort(Comparator.comparingInt(o -> o.stage)); 753 749 if (toLoad.isEmpty()) 754 750 return;
Note:
See TracChangeset
for help on using the changeset viewer.