Changeset 14654 in josm for trunk/src/org/openstreetmap/josm/data/osm/RelationToChildReference.java
- Timestamp:
- 2019-01-06T20:22:48+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/RelationToChildReference.java
r12190 r14654 6 6 import java.util.Objects; 7 7 import java.util.Set; 8 import java.util.stream.Collectors; 8 9 9 10 /** … … 19 20 */ 20 21 public static Set<RelationToChildReference> getRelationToChildReferences(OsmPrimitive child) { 21 Set<Relation> parents = OsmPrimitive.getFilteredSet(child.getReferrers(), Relation.class);22 Set<Relation> parents = child.referrers(Relation.class).collect(Collectors.toSet()); 22 23 Set<RelationToChildReference> references = new HashSet<>(); 23 24 for (Relation parent: parents) {
Note:
See TracChangeset
for help on using the changeset viewer.