Changeset 35949 in osm for applications/editors/josm


Ignore:
Timestamp:
2022-03-31T21:11:37+02:00 (2 years ago)
Author:
taylor.smock
Message:

Update deprecated functions in ColumbusCSVReader

This is replacing ImmutableGpxTrack (deprecated in r15496) with
GpxTrack (added in r15496)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVReader.java

    r35781 r35949  
    2626import org.openstreetmap.josm.data.gpx.GpxLink;
    2727import org.openstreetmap.josm.data.gpx.GpxTrack;
    28 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack;
    2928import org.openstreetmap.josm.data.gpx.WayPoint;
    3029import org.openstreetmap.josm.io.IllegalDataException;
     
    7473    private static final String TYPE_TAG = "columbus:type";
    7574
    76     private static String[] EMPTY_LINE = new String[] {};
     75    private static final String[] EMPTY_LINE = new String[] {};
    7776    private static final String SEPS = ",";
    7877    /* Lines to read before deciding on Columbus file yes/no */
     
    165164                    br.close();
    166165                    throw new IllegalDataException(tr("Error in line " + line
    167                         + ": " + ex.toString()), ex);
     166                        + ": " + ex), ex);
    168167                }
    169168                ++line;
     
    183182        // compose the track
    184183        allTrackPts.add(trackPts);
    185         GpxTrack trk = new ImmutableGpxTrack(allTrackPts,
    186             Collections.<String, Object> emptyMap());
     184        GpxTrack trk = new GpxTrack(allTrackPts,
     185            Collections.emptyMap());
    187186        gpxData.tracks.add(trk);
    188187   
Note: See TracChangeset for help on using the changeset viewer.