Ignore:
Timestamp:
2016-07-27T02:08:34+02:00 (8 years ago)
Author:
Don-vip
Message:

see #11390, see #12890 - use Java 8 Predicates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java

    r10627 r10657  
    2525import org.openstreetmap.josm.tools.Pair;
    2626import org.openstreetmap.josm.tools.Predicates;
     27import org.openstreetmap.josm.tools.SubclassFilteredCollection;
    2728import org.openstreetmap.josm.tools.Utils;
    2829
     
    320321                        throw new NoSuchElementException();
    321322                    }
    322                     final Collection<Relation> multipolygons = Utils.filteredCollection(Utils.filter(
     323                    final Collection<Relation> multipolygons = Utils.filteredCollection(SubclassFilteredCollection.filter(
    323324                            e.osm.getReferrers(), Predicates.hasTag("type", "multipolygon")), Relation.class);
    324325                    final Relation multipolygon = multipolygons.iterator().next();
Note: See TracChangeset for help on using the changeset viewer.