Ignore:
Timestamp:
2019-04-11T02:04:26+02:00 (5 years ago)
Author:
donvip
Message:

see #josm17580 #josm17581 #josm17582 #josm17583 #josm17584 #josm17585 #josm17586 #josm17587 #josm17588 - remove deprecated api (patches by taylor.smock)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/terracer/src/org/openstreetmap/josm/plugins/terracer/TerracerAction.java

    r34584 r34972  
    4747import org.openstreetmap.josm.tools.Shortcut;
    4848import org.openstreetmap.josm.tools.UserCancelException;
     49import org.openstreetmap.josm.tools.Utils;
    4950
    5051/**
     
    119120                outline = (Way) prim;
    120121            } else if (sel.size() > 1) {
    121                 List<Way> ways = OsmPrimitive.getFilteredList(sel, Way.class);
     122                List<Way> ways = new ArrayList<>(Utils.filteredCollection(sel, Way.class));
    122123                Iterator<Way> wit = ways.iterator();
    123124                while (wit.hasNext()) {
     
    143144                    throw new InvalidUserInputException("no outline way found");
    144145
    145                 List<Node> nodes = OsmPrimitive.getFilteredList(sel, Node.class);
     146                List<Node> nodes = new ArrayList<>(Utils.filteredCollection(sel, Node.class));
    146147                Iterator<Node> nit = nodes.iterator();
    147148                // Actually this should test if the selected address nodes lie
Note: See TracChangeset for help on using the changeset viewer.