Changeset 16346 in osm for applications/editors/josm/plugins/validator/src
- Timestamp:
- 2009-07-05T19:50:37+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java
r14121 r16346 71 71 if( !tags.containsKey("name") && !tags.containsKey("ref") ) 72 72 { 73 boolean isRoundabout = false; 73 74 boolean hasName = false; 74 75 for( String key : w.keySet()) … … 77 78 if( hasName ) 78 79 break; 80 if(key.equals("junction")) 81 { 82 isRoundabout = w.get("junction").equals("roundabout"); 83 break; 84 } 79 85 } 80 86 81 if( !hasName) 87 if( !hasName && !isRoundabout) 82 88 errors.add( new TestError(this, Severity.WARNING, tr("Unnamed ways"), UNNAMED_WAY, w) ); 89 else if(isRoundabout) 90 errors.add( new TestError(this, Severity.WARNING, tr("Unnamed Junction"), UNNAMED_WAY, w) ); 83 91 } 84 92 }
Note:
See TracChangeset
for help on using the changeset viewer.