Ticket #3264: gpxwriter-unchecked.patch

File gpxwriter-unchecked.patch, 1.1 KB (added by plaicy, 16 years ago)
  • src/org/openstreetmap/josm/io/GpxWriter.java

     
    6666        for (Map.Entry<String, Object> ent : attr.entrySet()) {
    6767            String k = ent.getKey();
    6868            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);
    7171                }
    7272            } else {
    7373                simpleTag(k, ent.getValue().toString());
     
    115115
    116116        // write links
    117117        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);
    120120            }
    121121        }
    122122