Changeset 10715 in josm for trunk/src/org/openstreetmap/josm/data/validation
- Timestamp:
- 2016-08-03T15:01:43+02:00 (8 years ago)
- 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 19 19 import org.openstreetmap.josm.data.validation.TestError; 20 20 import org.openstreetmap.josm.tools.LanguageInfo; 21 import org.openstreetmap.josm.tools.Predicates;22 21 import org.openstreetmap.josm.tools.SubclassFilteredCollection; 23 22 … … 166 165 final List<TestError> errors = new ArrayList<>(); 167 166 for (final String key : SubclassFilteredCollection.filter(p.keySet(), 168 P redicates.stringMatchesPattern(Pattern.compile(".*:conditional(:.*)?$")))) {167 Pattern.compile(":conditional(:.*)?$").asPredicate())) { 169 168 if (!isKeyValid(key)) { 170 169 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 28 28 import org.openstreetmap.josm.tools.MultiMap; 29 29 import org.openstreetmap.josm.tools.Pair; 30 import org.openstreetmap.josm.tools.Predicates;31 30 32 31 /** … … 156 155 boolean ignore = false; 157 156 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))) { 159 158 ignore = true; 160 159 break; -
trunk/src/org/openstreetmap/josm/data/validation/tests/WayConnectedToArea.java
r10657 r10715 15 15 import org.openstreetmap.josm.data.validation.TestError; 16 16 import org.openstreetmap.josm.gui.mappaint.ElemStyles; 17 import org.openstreetmap.josm.tools.Predicates;18 17 19 18 /** … … 67 66 if (wayNode.isOutsideDownloadArea()) { 68 67 return; 69 } else if (wayNode.getReferrers().stream().anyMatch( Predicates.hasTag("route", "ferry"))) {68 } else if (wayNode.getReferrers().stream().anyMatch(p1 -> p1.hasTag("route", "ferry"))) { 70 69 return; 71 70 } else if (isArea(p)) {
Note:
See TracChangeset
for help on using the changeset viewer.