Changeset 11038 in josm for trunk/src/org/openstreetmap/josm/gui/datatransfer
- Timestamp:
- 2016-09-21T21:37:13+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/datatransfer/data/PrimitiveTransferData.java
r10868 r11038 19 19 import org.openstreetmap.josm.data.osm.Way; 20 20 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 21 import org.openstreetmap.josm.tools.CompositeList; 21 22 22 23 /** … … 40 41 return ((Way) primitive).getNodes(); 41 42 } else if (primitive instanceof Relation) { 42 return ((Relation) primitive).getMemberPrimitives ();43 return ((Relation) primitive).getMemberPrimitivesList(); 43 44 } else { 44 45 return Collections.emptyList(); … … 102 103 */ 103 104 public Collection<PrimitiveData> getAll() { 104 ArrayList<PrimitiveData> list = new ArrayList<>(); 105 list.addAll(direct); 106 list.addAll(referenced); 107 return list; 105 return new CompositeList<>(direct, referenced); 108 106 } 109 107
Note:
See TracChangeset
for help on using the changeset viewer.