Ignore:
Timestamp:
2019-01-06T20:22:48+01:00 (6 years ago)
Author:
simon04
Message:

Deprecate OsmPrimitive.getFilteredList/getFilteredSet in favour of Stream

Most use-cases involved filtering referring primitives. This can now be
accomplished using OsmPrimitive.referrers involving the Stream API and
thus avoids creation of intermediate collections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SelectNonBranchingWaySequences.java

    r12048 r14654  
    8989        Way foundWay = null;
    9090
    91         for (Way way : OsmPrimitive.getFilteredList(node.getReferrers(),
    92                 Way.class)) {
     91        for (Way way : node.getParentWays()) {
    9392            if (way.getNodesCount() < 2 || !way.isFirstLastNode(node)
    9493                    || !way.isSelectable()
Note: See TracChangeset for help on using the changeset viewer.