Changeset 7888 in josm for trunk


Ignore:
Timestamp:
2014-12-25T19:11:15+01:00 (9 years ago)
Author:
Don-vip
Message:

fix #10083 - exclude more keys from *:lanes test

File:
1 edited

Legend:

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

    r7497 r7888  
    55
    66import java.util.ArrayList;
     7import java.util.Arrays;
    78import java.util.Collection;
    89import java.util.HashSet;
     
    2425public class Lanes extends Test.TagTest {
    2526
     27    private static final String[] BLACKLIST = {
     28        "source:lanes",
     29        "note:lanes",
     30        "proposed:lanes",
     31        "piste:lanes",
     32    };
     33
    2634    /**
    2735     * Constructs a new {@code Lanes} test.
     
    3846        final Collection<String> keysForPattern = new ArrayList<>(Utils.filter(p.keySet(),
    3947                Predicates.stringContainsPattern(Pattern.compile(":" + lanesKey + "$"))));
    40         keysForPattern.remove("source:lanes");
     48        keysForPattern.removeAll(Arrays.asList(BLACKLIST));
    4149        if (keysForPattern.size() < 1) {
    4250            // nothing to check
Note: See TracChangeset for help on using the changeset viewer.