Changeset 36172 in osm for applications


Ignore:
Timestamp:
2023-10-16T18:46:46+02:00 (15 months ago)
Author:
taylor.smock
Message:

utilsplugin2: Use interface instead of concrete return type for DataSet#getSelectionHistory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection/UndoSelectionAction.java

    r35611 r36172  
    99import java.util.Collection;
    1010import java.util.LinkedHashSet;
    11 import java.util.LinkedList;
     11import java.util.List;
    1212import java.util.Set;
    1313
     
    2222public class UndoSelectionAction extends JosmAction {
    2323
     24    /**
     25     * Create a new {@link UndoSelectionAction}
     26     */
    2427    public UndoSelectionAction() {
    2528        super(tr("Undo selection"), "undoselection",
     
    3740        DataSet ds = getLayerManager().getActiveDataSet();
    3841        if (ds != null) {
    39             LinkedList<Collection<? extends OsmPrimitive>> history = ds.getSelectionHistory();
     42            List<Collection<? extends OsmPrimitive>> history = ds.getSelectionHistory();
    4043            if (history == null || history.isEmpty()) return; // empty history
    4144            if (lastSel != null) {
Note: See TracChangeset for help on using the changeset viewer.