Changeset 11177 in josm for trunk/test/unit


Ignore:
Timestamp:
2016-10-27T00:32:55+02:00 (3 years ago)
Author:
simon04
Message:

Refactor OsmPrimitiveComparator

Replace one big comparator with functions to obtain specific simple comparators.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialogTest.java

    r10962 r11177  
    3434    private static String createSearchSetting(DataSet ds, boolean sameType) {
    3535        List<OsmPrimitive> sel = new ArrayList<>(ds.allPrimitives());
    36         Collections.sort(sel, new OsmPrimitiveComparator(true, false));
     36        Collections.sort(sel, OsmPrimitiveComparator.comparingUniqueId());
    3737        return PropertiesDialog.createSearchSetting("foo", sel, sameType).text;
    3838    }
Note: See TracChangeset for help on using the changeset viewer.