Changeset 11783 in josm for trunk/src/org
- Timestamp:
- 2017-03-27T19:26:16+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateRelation.java
r11627 r11783 225 225 @Override 226 226 public void visit(Relation r) { 227 if (!r.isUsable() || r.hasIncompleteMembers() )227 if (!r.isUsable() || r.hasIncompleteMembers() || "tmc".equals(r.get("type")) || "TMC".equals(r.get("type"))) 228 228 return; 229 229 List<RelationMember> rMembers = r.getMembers(); -
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r11475 r11783 306 306 // verify unwanted members 307 307 for (String key : map.keySet()) { 308 if (!allroles.containsKey(key) ) {308 if (!allroles.containsKey(key) && !"network".equals(n.get("type")) && !"bicycle".equals(n.get("route"))) { 309 309 String templates = allroles.keySet().stream().collect(Collectors.joining("/")); 310 310 311 311 if (!key.isEmpty()) { 312 313 312 errors.add(TestError.builder(this, Severity.WARNING, ROLE_UNKNOWN) 314 313 .message(ROLE_VERIF_PROBLEM_MSG, marktr("Role ''{0}'' unknown in templates ''{1}''"), key, templates)
Note:
See TracChangeset
for help on using the changeset viewer.