Ignore:
Timestamp:
2016-01-01T20:14:12+01:00 (8 years ago)
Author:
simon04
Message:

see #12111 - Detect when "to" and "from" also in no_u_turn restriction relations

Those will be reported as informational warning messages.

File:
1 edited

Legend:

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

    r9236 r9244  
    144144            return;
    145145        }
    146         if (fromWay.equals(toWay) && !r.hasTag("restriction", "no_u_turn")) {
    147             errors.add(new TestError(this, Severity.WARNING, tr("\"from\" way equals \"to\" way"), FROM_EQUALS_TO, r));
     146        if (fromWay.equals(toWay)) {
     147            errors.add(new TestError(this, r.hasTag("restriction", "no_u_turn") ? Severity.OTHER : Severity.WARNING,
     148                    tr("\"from\" way equals \"to\" way"), FROM_EQUALS_TO, r));
    148149        }
    149150        if (via.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.