- Timestamp:
- 2015-01-23T00:49:55+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java
r7932 r7981 81 81 if (highway != null && NAMED_WAYS.contains(highway) && !tags.containsKey("name") && !tags.containsKey("ref") 82 82 && !"yes".equals(tags.get("noname"))) { 83 boolean is Roundabout= false;83 boolean isJunction = false; 84 84 boolean hasName = false; 85 85 for (String key : w.keySet()) { … … 89 89 } 90 90 if ("junction".equals(key)) { 91 is Roundabout = "roundabout".equals(w.get("junction"));91 isJunction = true; 92 92 break; 93 93 } 94 94 } 95 95 96 if (!hasName && !is Roundabout) {96 if (!hasName && !isJunction) { 97 97 errors.add(new TestError(this, Severity.WARNING, tr("Unnamed ways"), UNNAMED_WAY, w)); 98 } else if (is Roundabout) {99 errors.add(new TestError(this, Severity. WARNING, tr("Unnamed junction"), UNNAMED_JUNCTION, w));98 } else if (isJunction) { 99 errors.add(new TestError(this, Severity.OTHER, tr("Unnamed junction"), UNNAMED_JUNCTION, w)); 100 100 } 101 101 }
Note:
See TracChangeset
for help on using the changeset viewer.