Changeset 7888 in josm
- Timestamp:
- 2014-12-25T19:11:15+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/Lanes.java
r7497 r7888 5 5 6 6 import java.util.ArrayList; 7 import java.util.Arrays; 7 8 import java.util.Collection; 8 9 import java.util.HashSet; … … 24 25 public class Lanes extends Test.TagTest { 25 26 27 private static final String[] BLACKLIST = { 28 "source:lanes", 29 "note:lanes", 30 "proposed:lanes", 31 "piste:lanes", 32 }; 33 26 34 /** 27 35 * Constructs a new {@code Lanes} test. … … 38 46 final Collection<String> keysForPattern = new ArrayList<>(Utils.filter(p.keySet(), 39 47 Predicates.stringContainsPattern(Pattern.compile(":" + lanesKey + "$")))); 40 keysForPattern.remove ("source:lanes");48 keysForPattern.removeAll(Arrays.asList(BLACKLIST)); 41 49 if (keysForPattern.size() < 1) { 42 50 // nothing to check
Note:
See TracChangeset
for help on using the changeset viewer.