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

    r10632 r10657  
    2020import org.openstreetmap.josm.tools.LanguageInfo;
    2121import org.openstreetmap.josm.tools.Predicates;
    22 import org.openstreetmap.josm.tools.Utils;
     22import org.openstreetmap.josm.tools.SubclassFilteredCollection;
    2323
    2424/**
     
    156156    public List<TestError> validatePrimitive(OsmPrimitive p) {
    157157        final List<TestError> errors = new ArrayList<>();
    158         for (final String key : Utils.filter(p.keySet(), Predicates.stringMatchesPattern(Pattern.compile(".*:conditional(:.*)?$")))) {
     158        for (final String key : SubclassFilteredCollection.filter(p.keySet(),
     159                Predicates.stringMatchesPattern(Pattern.compile(".*:conditional(:.*)?$")))) {
    159160            if (!isKeyValid(key)) {
    160161                errors.add(new TestError(this, Severity.WARNING, tr("Wrong syntax in {0} key", key), 3201, p));
Note: See TracChangeset for help on using the changeset viewer.