Changeset 11913 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
- Timestamp:
- 2017-04-15T01:38:46+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
r11893 r11913 2 2 package org.openstreetmap.josm.data.validation.tests; 3 3 4 import static org.openstreetmap.josm.data.validation.tests.CrossingWays.HIGHWAY; 5 import static org.openstreetmap.josm.data.validation.tests.CrossingWays.RAILWAY; 6 import static org.openstreetmap.josm.data.validation.tests.CrossingWays.WATERWAY; 4 7 import static org.openstreetmap.josm.tools.I18n.tr; 5 8 … … 99 102 100 103 private static final String[] TYPES = { 101 "none", "highway", "railway", "waterway", "boundary", "power", "natural", "landuse", "building"};104 "none", HIGHWAY, RAILWAY, WATERWAY, "boundary", "power", "natural", "landuse", "building"}; 102 105 103 106 /** The map of potential duplicates. … … 210 213 .primitives(primitives) 211 214 .build()); 212 } else if (typeMap.get( "highway")) {215 } else if (typeMap.get(HIGHWAY)) { 213 216 errors.add(TestError.builder(parentTest, Severity.ERROR, DUPLICATE_NODE_HIGHWAY) 214 217 .message(tr("Highway duplicated nodes")) 215 218 .primitives(primitives) 216 219 .build()); 217 } else if (typeMap.get( "railway")) {220 } else if (typeMap.get(RAILWAY)) { 218 221 errors.add(TestError.builder(parentTest, Severity.ERROR, DUPLICATE_NODE_RAILWAY) 219 222 .message(tr("Railway duplicated nodes")) 220 223 .primitives(primitives) 221 224 .build()); 222 } else if (typeMap.get( "waterway")) {225 } else if (typeMap.get(WATERWAY)) { 223 226 errors.add(TestError.builder(parentTest, Severity.ERROR, DUPLICATE_NODE_WATERWAY) 224 227 .message(tr("Waterway duplicated nodes"))
Note:
See TracChangeset
for help on using the changeset viewer.