Changeset 16436 in josm for trunk/src/org/openstreetmap/josm/data/APIDataSet.java
- Timestamp:
- 2020-05-17T12:08:17+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/APIDataSet.java
r13164 r16436 267 267 List<Relation> ret = new LinkedList<>(); 268 268 for (Relation relation: relations) { 269 boolean refersToNewRelation = false; 270 for (RelationMember m : relation.getMembers()) { 271 if (m.isRelation() && m.getMember().isNewOrUndeleted()) { 272 refersToNewRelation = true; 273 break; 274 } 275 } 269 boolean refersToNewRelation = relation.getMembers().stream() 270 .anyMatch(m -> m.isRelation() && m.getMember().isNewOrUndeleted()); 276 271 if (!refersToNewRelation) { 277 272 ret.add(relation);
Note:
See TracChangeset
for help on using the changeset viewer.