Changeset 1975 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-08-13T12:46:30+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/FileDrop.java
r1911 r1975 339 339 340 340 // Get a useful list 341 java.util.List <Object> fileList = (java.util.List<Object>)341 java.util.List fileList = (java.util.List) 342 342 tr.getTransferData(java.awt.datatransfer.DataFlavor.javaFileListFlavor); 343 343 344 344 // Convert list to array 345 java.io.File[] filesTemp = new java.io.File[ fileList.size() ]; 346 fileList.toArray( filesTemp ); 347 final java.io.File[] files = filesTemp; 345 final java.io.File[] files = (File[]) fileList.toArray();; 348 346 349 347 // Alert listener to drop. -
trunk/src/org/openstreetmap/josm/io/GpxWriter.java
r1947 r1975 67 67 String k = ent.getKey(); 68 68 if (k.equals(GpxData.META_LINKS)) { 69 for ( GpxLink link : (Collection<GpxLink>) ent.getValue()) {70 gpxLink( link);69 for (Object link : (Collection) ent.getValue()) { 70 gpxLink((GpxLink) link); 71 71 } 72 72 } else { … … 116 116 // write links 117 117 if(attr.containsKey(GpxData.META_LINKS)) { 118 for ( GpxLink link : (Collection<GpxLink>) attr.get(GpxData.META_LINKS)) {119 gpxLink( link);118 for (Object link : (Collection) attr.get(GpxData.META_LINKS)) { 119 gpxLink((GpxLink) link); 120 120 } 121 121 }
Note:
See TracChangeset
for help on using the changeset viewer.