Changeset 7012 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java
- Timestamp:
- 2014-04-27T15:35:47+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java
r7005 r7012 99 99 public void visit(Way w) { 100 100 if (w.isUsable()) { 101 if (w.hasKey("highway") && w.hasKey("junction") && w.get("junction").equals("roundabout")) {101 if (w.hasKey("highway") && w.hasKey("junction") && "roundabout".equals(w.get("junction"))) { 102 102 testWrongRoundabout(w); 103 103 } … … 180 180 String highway = w.get("highway"); 181 181 if (highway != null) { 182 if ( highway.equals("footway") || highway.equals("path")) {182 if ("footway".equals(highway) || "path".equals(highway)) { 183 183 handlePedestrianWay(n, w); 184 184 if (w.hasTag("bicycle", "yes", "designated")) { 185 185 handleCyclistWay(n, w); 186 186 } 187 } else if ( highway.equals("cycleway")) {187 } else if ("cycleway".equals(highway)) { 188 188 handleCyclistWay(n, w); 189 189 if (w.hasTag("foot", "yes", "designated")) {
Note:
See TracChangeset
for help on using the changeset viewer.