Ignore:
Timestamp:
2016-08-03T15:01:43+02:00 (8 years ago)
Author:
simon04
Message:

see #11390, see #12890 - Deprecate Predicates class

Location:
trunk/src/org/openstreetmap/josm/data/validation/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/ConditionalKeys.java

    r10680 r10715  
    1919import org.openstreetmap.josm.data.validation.TestError;
    2020import org.openstreetmap.josm.tools.LanguageInfo;
    21 import org.openstreetmap.josm.tools.Predicates;
    2221import org.openstreetmap.josm.tools.SubclassFilteredCollection;
    2322
     
    166165        final List<TestError> errors = new ArrayList<>();
    167166        for (final String key : SubclassFilteredCollection.filter(p.keySet(),
    168                 Predicates.stringMatchesPattern(Pattern.compile(".*:conditional(:.*)?$")))) {
     167                Pattern.compile(":conditional(:.*)?$").asPredicate())) {
    169168            if (!isKeyValid(key)) {
    170169                errors.add(new TestError(this, Severity.WARNING, tr("Wrong syntax in {0} key", key), 3201, p));
  • trunk/src/org/openstreetmap/josm/data/validation/tests/OverlappingWays.java

    r10657 r10715  
    2828import org.openstreetmap.josm.tools.MultiMap;
    2929import org.openstreetmap.josm.tools.Pair;
    30 import org.openstreetmap.josm.tools.Predicates;
    3130
    3231/**
     
    156155                boolean ignore = false;
    157156                for (String ignoredKey : IGNORED_KEYS.get()) {
    158                     if (error.getPrimitives().stream().anyMatch(Predicates.hasKey(ignoredKey))) {
     157                    if (error.getPrimitives().stream().anyMatch(p -> p.hasKey(ignoredKey))) {
    159158                        ignore = true;
    160159                        break;
  • trunk/src/org/openstreetmap/josm/data/validation/tests/WayConnectedToArea.java

    r10657 r10715  
    1515import org.openstreetmap.josm.data.validation.TestError;
    1616import org.openstreetmap.josm.gui.mappaint.ElemStyles;
    17 import org.openstreetmap.josm.tools.Predicates;
    1817
    1918/**
     
    6766        if (wayNode.isOutsideDownloadArea()) {
    6867            return;
    69         } else if (wayNode.getReferrers().stream().anyMatch(Predicates.hasTag("route", "ferry"))) {
     68        } else if (wayNode.getReferrers().stream().anyMatch(p1 -> p1.hasTag("route", "ferry"))) {
    7069            return;
    7170        } else if (isArea(p)) {
Note: See TracChangeset for help on using the changeset viewer.