Skip to content
Permalink
Browse files

see #josm17580 #josm17581 #josm17582 #josm17583 #josm17584 #josm17585…

… #josm17586 #josm17587 #josm17588 - remove deprecated api (patches by taylor.smock)
  • Loading branch information...
don-vip committed Apr 11, 2019
1 parent fffd12d commit c95d95b835861b0a4a68a795f64a791b416ee37b
@@ -39,6 +39,7 @@
import org.openstreetmap.josm.plugins.utilsplugin2.replacegeometry.ReplaceGeometryUtils;
import org.openstreetmap.josm.tools.ImageProvider;
import org.openstreetmap.josm.tools.UserCancelException;
import org.openstreetmap.josm.tools.Utils;


/**
@@ -240,7 +241,7 @@ public static Command buildReplaceGeometryCommand(OsmPrimitive subjectObject, Os

private static HashMap<Relation, RelationData> saveAndRemoveRelationMembersFor(OsmPrimitive primitive) {
HashMap<Relation, RelationData> savedData = new HashMap<>();
for (Relation r: OsmPrimitive.getFilteredList(primitive.getReferrers(), Relation.class)) {
for (Relation r: Utils.filteredCollection(primitive.getReferrers(), Relation.class)) {
savedData.put(r, r.save());
r.removeMembersFor(primitive);
}

0 comments on commit c95d95b

Please sign in to comment.
You can’t perform that action at this time.