Changeset 11783 in josm for trunk/src/org


Ignore:
Timestamp:
2017-03-27T19:26:16+02:00 (8 years ago)
Author:
stoecker
Message:

get rid of many useless validator warnings

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  
    225225    @Override
    226226    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")))
    228228            return;
    229229        List<RelationMember> rMembers = r.getMembers();
  • trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java

    r11475 r11783  
    306306        // verify unwanted members
    307307        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"))) {
    309309                String templates = allroles.keySet().stream().collect(Collectors.joining("/"));
    310310
    311311                if (!key.isEmpty()) {
    312 
    313312                    errors.add(TestError.builder(this, Severity.WARNING, ROLE_UNKNOWN)
    314313                            .message(ROLE_VERIF_PROBLEM_MSG, marktr("Role ''{0}'' unknown in templates ''{1}''"), key, templates)
Note: See TracChangeset for help on using the changeset viewer.