Ticket #13923: 13923_v2.patch
File 13923_v2.patch, 1.0 KB (added by , 7 years ago) |
---|
-
src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java
402 402 } 403 403 404 404 private static Collection<? extends OsmPrimitive> addRelationIfNeeded(Relation r, Collection<? extends OsmPrimitive> primitives) { 405 // Fix #8212 : if the error references only incomplete primitives,406 405 // add multipolygon in order to let user select something and fix the error 407 406 if (!primitives.contains(r)) { 408 for (OsmPrimitive p : primitives) {409 if (!p.isIncomplete()) {410 return primitives;411 }412 }413 407 // Diamond operator does not work with Java 9 here 414 408 @SuppressWarnings("unused") 415 409 List<OsmPrimitive> newPrimitives = new ArrayList<OsmPrimitive>(primitives);