Ticket #17581: 17581.patch

File 17581.patch, 944 bytes (added by taylor.smock, 3 months ago)

Replace deprecated functions

  • src/org/openstreetmap/josm/plugins/simplifyarea/SimplifyAreaAction.java

     
    3939import org.openstreetmap.josm.spi.preferences.Config;
    4040import org.openstreetmap.josm.tools.ImageProvider;
    4141import org.openstreetmap.josm.tools.Shortcut;
     42import org.openstreetmap.josm.tools.Utils;
    4243
    4344public final class SimplifyAreaAction extends JosmAction {
    4445
     
    107108                }
    108109            }
    109110        }
    110         final Collection<Way> ways = OsmPrimitive.getFilteredSet(selection, Way.class);
     111        final Collection<Way> ways = Utils.filteredCollection(selection, Way.class);
    111112        if (ways.isEmpty()) {
    112113            alertSelectAtLeastOneWay();
    113114            return;