Changeset 18176 in josm


Ignore:
Timestamp:
2021-08-25T21:16:38+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #20393 - exclude ways tagged with area=yes from UntaggedWay test

File:
1 edited

Legend:

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

    r16220 r18176  
    1313import org.openstreetmap.josm.data.osm.OsmDataManager;
    1414import org.openstreetmap.josm.data.osm.OsmPrimitive;
     15import org.openstreetmap.josm.data.osm.OsmUtils;
    1516import org.openstreetmap.josm.data.osm.Relation;
    1617import org.openstreetmap.josm.data.osm.RelationMember;
     
    112113        }
    113114
    114         if (!w.isTagged() && !waysUsedInRelations.contains(w)) {
     115        // #20393 - ways tagged with just area=yes are catched by MapCSS tests
     116        if (!w.isTagged() && !w.hasTag("area", OsmUtils.TRUE_VALUE) && !waysUsedInRelations.contains(w)) {
    115117            if (w.hasKeys()) {
    116118                errors.add(TestError.builder(this, Severity.WARNING, COMMENTED_WAY)
Note: See TracChangeset for help on using the changeset viewer.