Changeset 7981 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2015-01-23T00:49:55+01:00 (9 years ago)
Author:
Don-vip
Message:

fix #10995 - lower "Unnamed junction" warning to info level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java

    r7932 r7981  
    8181            if (highway != null && NAMED_WAYS.contains(highway) && !tags.containsKey("name") && !tags.containsKey("ref")
    8282                    && !"yes".equals(tags.get("noname"))) {
    83                 boolean isRoundabout = false;
     83                boolean isJunction = false;
    8484                boolean hasName = false;
    8585                for (String key : w.keySet()) {
     
    8989                    }
    9090                    if ("junction".equals(key)) {
    91                         isRoundabout = "roundabout".equals(w.get("junction"));
     91                        isJunction = true;
    9292                        break;
    9393                    }
    9494                }
    9595
    96                 if (!hasName && !isRoundabout) {
     96                if (!hasName && !isJunction) {
    9797                    errors.add(new TestError(this, Severity.WARNING, tr("Unnamed ways"), UNNAMED_WAY, w));
    98                 } else if (isRoundabout) {
    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));
    100100                }
    101101            }
Note: See TracChangeset for help on using the changeset viewer.