Changeset 36320 in osm for applications/editors/josm/plugins/reverter
- Timestamp:
- 2024-08-21T22:51:45+02:00 (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/src/reverter/ChangesetReverter.java
r36318 r36320 16 16 import java.util.Objects; 17 17 import java.util.Optional; 18 import java.util.Set; 18 19 import java.util.stream.Collectors; 19 20 … … 474 475 * @param toDelete The primitives that will be deleted 475 476 */ 476 private void checkObjectVersions(List<Command> cmds, HashSet<OsmPrimitive> conflicted,HashSet<OsmPrimitive> toDelete) {477 private void checkObjectVersions(List<Command> cmds, Set<OsmPrimitive> conflicted, Set<OsmPrimitive> toDelete) { 477 478 for (Iterator<ChangesetDataSetEntry> it = cds.iterator(); it.hasNext();) { 478 479 ChangesetDataSetEntry entry = it.next(); … … 518 519 * @return {@code true} if the objects are not semantically the same 519 520 */ 520 private boolean checkObjectVersionsNotSemanticallySame( HashSet<OsmPrimitive> toDelete, HistoryOsmPrimitive hp, OsmPrimitive dp) {521 private boolean checkObjectVersionsNotSemanticallySame(Set<OsmPrimitive> toDelete, HistoryOsmPrimitive hp, OsmPrimitive dp) { 521 522 return hp.getVersion() != dp.getVersion() 522 523 && (hp.isVisible() || dp.isVisible()) && … … 535 536 * @param toDelete The primitives that will be deleted 536 537 */ 537 private void checkForDeletedReferrers(List<Command> cmds, HashSet<OsmPrimitive> conflicted,HashSet<OsmPrimitive> toDelete) {538 private void checkForDeletedReferrers(List<Command> cmds, Set<OsmPrimitive> conflicted, Set<OsmPrimitive> toDelete) { 538 539 List<OsmPrimitive> delSorted = toDelete.stream() 539 540 .filter(p -> !p.isDeleted()) … … 565 566 * @return {@code true} if we need to restart processing 566 567 */ 567 private boolean checkForDeletedReferrersPrimitive(List<Command> cmds, HashSet<OsmPrimitive> conflicted,568 HashSet<OsmPrimitive> toDelete, List<OsmPrimitive> delSorted,568 private boolean checkForDeletedReferrersPrimitive(List<Command> cmds, Set<OsmPrimitive> conflicted, 569 Set<OsmPrimitive> toDelete, List<OsmPrimitive> delSorted, 569 570 OsmPrimitive p, int i) { 570 571 for (OsmPrimitive referrer : p.getReferrers()) {
Note:
See TracChangeset
for help on using the changeset viewer.