Changeset 35931 in osm for applications/editors


Ignore:
Timestamp:
2022-03-22T18:42:28+01:00 (3 years ago)
Author:
taylor.smock
Message:

fix #21763: Update deprecated functions in EditGpx

Location:
applications/editors/josm/plugins/editgpx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/editgpx/build.xml

    r35221 r35931  
    44    <property name="commit.message" value="Changed constructor signature of plugin main class"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="15502"/>
     6    <property name="plugin.main.version" value="17715"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxWayPoint.java

    r34751 r35931  
    11package org.openstreetmap.josm.plugins.editgpx.data;
    22
     3import java.time.Instant;
    34import java.util.HashMap;
    45import java.util.Map;
     
    2122    public WayPoint createWayPoint() {
    2223        WayPoint result = new WayPoint(getCoor());
    23         result.setTime((long) time);
     24        result.setInstant(Instant.ofEpochSecond((long) time));
    2425        result.attr = attributes;
    2526        return result;
Note: See TracChangeset for help on using the changeset viewer.