Ticket #17584: 17584_remainder.patch

File 17584_remainder.patch, 1.1 KB (added by taylor.smock, 7 years ago)

Replace OsmPrimitive.getFilteredList with Utils.filteredCollection

  • src/main/java/org/openstreetmap/josm/plugins/pt_assistant/utils/StopUtils.java

     
    44import org.openstreetmap.josm.data.osm.Node;
    55import org.openstreetmap.josm.data.osm.OsmPrimitive;
    66import org.openstreetmap.josm.data.osm.Relation;
     7import org.openstreetmap.josm.tools.Utils;
    78
    89/**
    910 * Utils class for stop areas
     
    6970     * @return true if the object part of stop area relation, false otherwise.
    7071     */
    7172    public static boolean verifyIfMemberOfStopArea(final OsmPrimitive member) {
    72         for (Relation parentRelation : OsmPrimitive.getFilteredList(member.getReferrers(), Relation.class)) {
     73        for (Relation parentRelation : Utils.filteredCollection(member.getReferrers(), Relation.class)) {
    7374            if (StopUtils.isStopArea(parentRelation)) {
    7475                return true;
    7576            }