Ticket #3264: gpxwriter-unchecked.patch
File gpxwriter-unchecked.patch, 1.1 KB (added by , 16 years ago) |
---|
-
src/org/openstreetmap/josm/io/GpxWriter.java
66 66 for (Map.Entry<String, Object> ent : attr.entrySet()) { 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 { 73 73 simpleTag(k, ent.getValue().toString()); … … 115 115 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 } 122 122