Changeset 14467 in josm


Ignore:
Timestamp:
2018-11-30T08:28:03+01:00 (7 months ago)
Author:
GerdP
Message:

fix #17041 Let OverlappingWays also report ways where exactly one segment overlaps

File:
1 edited

Legend:

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

    r14401 r14467  
    194194            }
    195195        }
    196         if (duplicateWaySegments.size() > 1) {
    197             return duplicateWaySegments;
    198         } else {
    199             return null;
    200         }
     196        return duplicateWaySegments;
    201197    }
    202198
     
    205201
    206202        final Set<WaySegment> duplicateWaySegment = checkDuplicateWaySegment(w);
    207         if (duplicateWaySegment != null) {
     203        if (!duplicateWaySegment.isEmpty()) {
    208204            errors.add(TestError.builder(this, Severity.ERROR, DUPLICATE_WAY_SEGMENT)
    209205                    .message(tr("Way contains segment twice"))
Note: See TracChangeset for help on using the changeset viewer.