Changeset 7020 in josm for trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java
- Timestamp:
- 2014-04-29T01:09:09+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java
r7005 r7020 30 30 public final Collection<WayPoint> waypoints = new LinkedList<>(); 31 31 32 @SuppressWarnings("unchecked")33 32 public void mergeFrom(GpxData other) { 34 33 if (storageFile == null && other.storageFile != null) { … … 41 40 String k = ent.getKey(); 42 41 if (k.equals(META_LINKS) && attr.containsKey(META_LINKS)) { 43 ((Collection<GpxLink>) attr.get(META_LINKS)).addAll( 44 (Collection<GpxLink>) ent.getValue()); 42 @SuppressWarnings("unchecked") 43 Collection<GpxLink> my = (Collection<GpxLink>) attr.get(META_LINKS); 44 @SuppressWarnings("unchecked") 45 Collection<GpxLink> their = (Collection<GpxLink>) ent.getValue(); 46 my.addAll(their); 45 47 } else { 46 48 attr.put(k, ent.getValue());
Note:
See TracChangeset
for help on using the changeset viewer.