Ticket #17583: 17583.patch

File 17583.patch, 1.1 KB (added by taylor.smock, 6 months ago)

Replace deprecated functions

  • src/relcontext/actions/SplittingMultipolygons.java

     
    3030import org.openstreetmap.josm.spi.preferences.Config;
    3131import org.openstreetmap.josm.tools.Geometry;
    3232import org.openstreetmap.josm.tools.Geometry.PolygonIntersection;
     33import org.openstreetmap.josm.tools.Utils;
    3334
    3435/**
    3536 *
     
    252253            return null;
    253254
    254255        List<Way> ways = intersection(
    255                 OsmPrimitive.getFilteredList(segment.firstNode().getReferrers(), Way.class),
    256                 OsmPrimitive.getFilteredList(segment.lastNode().getReferrers(), Way.class));
     256                Utils.filteredCollection(segment.firstNode().getReferrers(), Way.class),
     257                Utils.filteredCollection(segment.lastNode().getReferrers(), Way.class));
    257258        ways.remove(segment);
    258259        for (Iterator<Way> iter = ways.iterator(); iter.hasNext();) {
    259260            boolean save = false;