Changeset 10657 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/ConditionalKeys.java
- Timestamp:
- 2016-07-27T02:08:34+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/ConditionalKeys.java
r10632 r10657 20 20 import org.openstreetmap.josm.tools.LanguageInfo; 21 21 import org.openstreetmap.josm.tools.Predicates; 22 import org.openstreetmap.josm.tools. Utils;22 import org.openstreetmap.josm.tools.SubclassFilteredCollection; 23 23 24 24 /** … … 156 156 public List<TestError> validatePrimitive(OsmPrimitive p) { 157 157 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(:.*)?$")))) { 159 160 if (!isKeyValid(key)) { 160 161 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.