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/data/validation/tests/Highways.java

    r14198 r14654  
    115115        // As roundabouts are closed ways, take care of not processing the first/last node twice
    116116        for (Node n : new HashSet<>(w.getNodes())) {
    117             for (Way h : Utils.filteredCollection(n.getReferrers(), Way.class)) {
     117            for (Way h : (Iterable<Way>) n.referrers(Way.class)::iterator) {
    118118                String value = h.get(HIGHWAY);
    119119                if (h != w && value != null) {
Note: See TracChangeset for help on using the changeset viewer.