Changeset 6665 in josm for trunk


Ignore:
Timestamp:
2014-01-10T19:10:29+01:00 (10 years ago)
Author:
Don-vip
Message:

fix #9562 - unwanted validator warning - "tourism type attraction - Unclosed way"

File:
1 edited

Legend:

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

    r6604 r6665  
    5252       
    5353        /**
    54          * Constructs a new {@code UnclosedWaysCheck}. 
     54         * Constructs a new {@code UnclosedWaysCheck}.
    5555         * @param code The unique numeric code for this check
    5656         * @param key The OSM key checked
     
    5959        @SuppressWarnings("unchecked")
    6060        public UnclosedWaysCheck(int code, String key, String engMessage) {
    61             this(code, key, engMessage, (List<String>) Collections.EMPTY_LIST);
     61            this(code, key, engMessage, Collections.EMPTY_LIST);
    6262        }
    6363       
    6464        /**
    65          * Constructs a new {@code UnclosedWaysCheck}. 
     65         * Constructs a new {@code UnclosedWaysCheck}.
    6666         * @param code The unique numeric code for this check
    6767         * @param key The OSM key checked
     
    7474       
    7575        /**
    76          * Constructs a new {@code UnclosedWaysCheck}. 
     76         * Constructs a new {@code UnclosedWaysCheck}.
    7777         * @param code The unique numeric code for this check
    7878         * @param key The OSM key checked
    7979         * @param engMessage The English message
    8080         * @param specialValues The special values, to be ignored if ignore is set to true; to be considered only if ignore is set to false
    81          * @param ignore indicates if special values must be ignored or considered only 
     81         * @param ignore indicates if special values must be ignored or considered only
    8282         */
    8383        public UnclosedWaysCheck(int code, String key, String engMessage, List<String> specialValues, boolean ignore) {
     
    9292         * Returns the test error of the given way, if any.
    9393         * @param w The way to check
    94          * @return The test error if the way is erroneous, {@code null} otherwise 
     94         * @return The test error if the way is erroneous, {@code null} otherwise
    9595         */
    9696        public final TestError getTestError(Way w) {
     
    120120
    121121        /**
    122          * Constructs a new {@code UnclosedWaysBooleanCheck}. 
     122         * Constructs a new {@code UnclosedWaysBooleanCheck}.
    123123         * @param code The unique numeric code for this check
    124124         * @param key The OSM key checked
     
    142142        new UnclosedWaysCheck(1103, "amenities", marktr("amenities type {0}")),
    143143        new UnclosedWaysCheck(1104, "sport",     marktr("sport type {0}"), Arrays.asList("water_slide", "climbing")),
    144         new UnclosedWaysCheck(1105, "tourism",   marktr("tourism type {0}")),
     144        new UnclosedWaysCheck(1105, "tourism",   marktr("tourism type {0}"), Arrays.asList("attraction")),
    145145        new UnclosedWaysCheck(1106, "shop",      marktr("shop type {0}")),
    146146        new UnclosedWaysCheck(1107, "leisure",   marktr("leisure type {0}"), Arrays.asList("track")),
Note: See TracChangeset for help on using the changeset viewer.