Changeset 14559 in josm for trunk


Ignore:
Timestamp:
2018-12-14T15:19:21+01:00 (5 months ago)
Author:
GerdP
Message:

fix #17108 avoid duplicate warning for unclosed ways which are also tested in geometry.mapcss rule "{0} on a way, should be a node"

File:
1 edited

Legend:

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

    r13138 r14559  
    135135    private static final UnclosedWaysCheck[] checks = {
    136136        // CHECKSTYLE.OFF: SingleSpaceSeparator
    137         new UnclosedWaysCheck(1101, "natural",   marktr("natural type {0}"),
    138                 new HashSet<>(Arrays.asList("cave", "coastline", "cliff", "tree_row", "ridge", "valley", "arete", "gorge", "gully"))),
    139         new UnclosedWaysCheck(1102, "landuse",   marktr("landuse type {0}")),
     137        // list contains natural tag allowed on unclosed ways as well as those only allowed on nodes to avoid
     138        // duplicate warnings
     139        new UnclosedWaysCheck(1101, "natural", marktr("natural type {0}"),
     140            new HashSet<>(Arrays.asList("arete", "cave", "cliff", "coastline", "gorge", "gully", "peak",
     141                            "ridge", "saddle", "tree", "tree_row", "valley", "volcano"))),
     142
     143        new UnclosedWaysCheck(1102, "landuse", marktr("landuse type {0}")),
    140144        new UnclosedWaysCheck(1103, "amenities", marktr("amenities type {0}")),
    141145        new UnclosedWaysCheck(1104, "sport",     marktr("sport type {0}"),
Note: See TracChangeset for help on using the changeset viewer.