Changeset 17861 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-05-06T10:31:36+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/Lanes.java
r17584 r17861 9 9 10 10 import org.openstreetmap.josm.data.osm.OsmPrimitive; 11 import org.openstreetmap.josm.data.osm.Way; 11 12 import org.openstreetmap.josm.data.validation.Severity; 12 13 import org.openstreetmap.josm.data.validation.Test; … … 96 97 @Override 97 98 public boolean isPrimitiveUsable(OsmPrimitive p) { 98 return p.isTagged() && super.isPrimitiveUsable(p); 99 return p.isTagged() && p instanceof Way && p.hasTag("highway") && super.isPrimitiveUsable(p); 99 100 } 100 101 }
Note:
See TracChangeset
for help on using the changeset viewer.