Changeset 35939 in osm for applications/editors


Ignore:
Timestamp:
2022-03-22T19:36:26+01:00 (3 years ago)
Author:
taylor.smock
Message:

fix #21773: Update deprecated functions in wms-turbo-challenge2

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

Location:
applications/editors/josm/plugins/wms-turbo-challenge2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wms-turbo-challenge2/build.xml

    r34570 r35939  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="14153"/>
     7    <property name="plugin.main.version" value="15496"/>
    88
    99    <property name="plugin.author" value="Andrzej Zaborowski"/>
  • applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/GameWindow.java

    r34570 r35939  
    3030import org.openstreetmap.josm.data.coor.EastNorth;
    3131import org.openstreetmap.josm.data.gpx.GpxData;
    32 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack;
     32import org.openstreetmap.josm.data.gpx.GpxTrack;
    3333import org.openstreetmap.josm.data.gpx.WayPoint;
    3434import org.openstreetmap.josm.data.projection.ProjectionRegistry;
     
    133133
    134134            GpxData data = new GpxData();
    135             data.tracks.add(new ImmutableGpxTrack(trackSegs,
    136                     new HashMap<String, Object>()));
     135            data.tracks.add(new GpxTrack(trackSegs, new HashMap<>()));
    137136
    138137            ground_view.parent.getLayerManager().addLayer(
Note: See TracChangeset for help on using the changeset viewer.