Changeset 9937 in josm


Ignore:
Timestamp:
2016-03-05T23:51:02+01:00 (4 years ago)
Author:
simon04
Message:

see #8460 - Allow roundabouts in gap test

File:
1 edited

Legend:

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

    r9933 r9937  
    55
    66import java.util.ArrayList;
    7 import java.util.EnumSet;
    87import java.util.List;
    98
     
    5857            final boolean hasError = !(i == 0 || link.linkPrev)
    5958                    || !(i == links.size() - 1 || link.linkNext)
    60                     || !EnumSet.of(WayConnectionType.Direction.FORWARD, WayConnectionType.Direction.BACKWARD).contains(link.direction);
     59                    || link.direction == null
     60                    || WayConnectionType.Direction.NONE.equals(link.direction);
    6161            if (hasError) {
    6262                errors.add(new TestError(this, Severity.WARNING, tr("Route relation contains a gap"), 3602, r));
Note: See TracChangeset for help on using the changeset viewer.