Changeset 16377 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-04-24T12:06:05+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/UnclosedWays.java
r15297 r16377 10 10 import java.util.Set; 11 11 12 import org.openstreetmap.josm.data.osm.OsmPrimitive;13 12 import org.openstreetmap.josm.data.osm.OsmUtils; 14 13 import org.openstreetmap.josm.data.osm.Relation; … … 143 142 144 143 new UnclosedWaysCheck(1102, "landuse", marktr("landuse type {0}")), 145 new UnclosedWaysCheck(1103, "amenit ies", marktr("amenitiestype {0}")),144 new UnclosedWaysCheck(1103, "amenity", marktr("amenity type {0}")), 146 145 new UnclosedWaysCheck(1104, "sport", marktr("sport type {0}"), 147 146 new HashSet<>(Arrays.asList("water_slide", "climbing", "skiing", "toboggan", "bobsleigh", "karting"))), … … 180 179 return; 181 180 182 for ( OsmPrimitive parent: w.getReferrers()) {183 if ( parent instanceof Relation && ((Relation) parent).isMultipolygon())181 for (UnclosedWaysCheck c : checks) { 182 if ("boundary".equals(c.key) && w.referrers(Relation.class).anyMatch(Relation::isMultipolygon)) 184 183 return; 185 }186 187 for (UnclosedWaysCheck c : checks) {188 184 TestError error = c.getTestError(w, this); 189 185 if (error != null) {
Note:
See TracChangeset
for help on using the changeset viewer.