Changeset 11339 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2016-11-28T21:18:55+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r11240 r11339 14 14 import java.util.HashMap; 15 15 import java.util.HashSet; 16 import java.util.Iterator;17 16 import java.util.LinkedList; 18 17 import java.util.List; … … 439 438 if (!silent) { 440 439 Set<RelationToChildReference> references = RelationToChildReference.getRelationToChildReferences(primitivesToDelete); 441 Iterator<RelationToChildReference> it = references.iterator(); 442 while (it.hasNext()) { 443 RelationToChildReference ref = it.next(); 444 if (ref.getParent().isDeleted()) { 445 it.remove(); 446 } 447 } 440 references.removeIf(ref -> ref.getParent().isDeleted()); 448 441 if (!references.isEmpty()) { 449 442 DeleteFromRelationConfirmationDialog dialog = DeleteFromRelationConfirmationDialog.getInstance();
Note:
See TracChangeset
for help on using the changeset viewer.