- Timestamp:
- 2018-11-30T08:28:03+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/OverlappingWays.java
r14401 r14467 194 194 } 195 195 } 196 if (duplicateWaySegments.size() > 1) { 197 return duplicateWaySegments; 198 } else { 199 return null; 200 } 196 return duplicateWaySegments; 201 197 } 202 198 … … 205 201 206 202 final Set<WaySegment> duplicateWaySegment = checkDuplicateWaySegment(w); 207 if ( duplicateWaySegment != null) {203 if (!duplicateWaySegment.isEmpty()) { 208 204 errors.add(TestError.builder(this, Severity.ERROR, DUPLICATE_WAY_SEGMENT) 209 205 .message(tr("Way contains segment twice"))
Note:
See TracChangeset
for help on using the changeset viewer.