Changeset 19330 in josm for trunk


Ignore:
Timestamp:
2025-02-20T18:23:25+01:00 (4 days ago)
Author:
stoecker
Message:

see #24104 - removed deprecated functions

Location:
trunk/src/org/openstreetmap/josm/data/osm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

    r19284 r19330  
    310310    }
    311311
    312     @Deprecated(since = "17749")
    313     @Override
    314     public void setTimestamp(Date timestamp) {
    315         this.timestamp = (int) TimeUnit.MILLISECONDS.toSeconds(timestamp.getTime());
    316     }
    317 
    318312    @Override
    319313    public void setInstant(Instant timestamp) {
     
    324318    public void setRawTimestamp(int timestamp) {
    325319        this.timestamp = timestamp;
    326     }
    327 
    328     @Deprecated(since = "17749")
    329     @Override
    330     public Date getTimestamp() {
    331         return Date.from(getInstant());
    332320    }
    333321
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r19108 r19330  
    300300    }
    301301
    302     @Deprecated(since = "17749", forRemoval = true)
    303     @Override
    304     public void setTimestamp(Date timestamp) {
    305         checkDatasetNotReadOnly();
    306         boolean locked = writeLock();
    307         try {
    308             super.setTimestamp(timestamp);
    309         } finally {
    310             writeUnlock(locked);
    311         }
    312     }
    313 
    314302    /* -------
    315303    /* FLAGS
Note: See TracChangeset for help on using the changeset viewer.