Ticket #17598: 17598.patch

File 17598.patch, 1.0 KB (added by taylor.smock, 6 years ago)

Replace deprecated functions

  • src/org/openstreetmap/josm/plugins/waydownloader/WayDownloaderPlugin.java

     
    3737import org.openstreetmap.josm.spi.preferences.Config;
    3838import org.openstreetmap.josm.tools.Logging;
    3939import org.openstreetmap.josm.tools.Shortcut;
     40import org.openstreetmap.josm.tools.Utils;
    4041
    4142/**
    4243 * Plugin class for the Way Downloader plugin
     
    270271     * @return the list of ways. May be empty, but null.
    271272     */
    272273    private List<Way> findConnectedWays(Node referenceNode) {
    273         List<Way> referers = OsmPrimitive.getFilteredList(referenceNode.getReferrers(), Way.class);
     274        List<Way> referers = new ArrayList<>(Utils.filteredCollection(referenceNode.getReferrers(), Way.class));
    274275        ArrayList<Way> connectedWays = new ArrayList<>(referers.size());
    275276
    276277        //loop through referers