Ignore:
Timestamp:
2021-04-09T00:55:40+02:00 (3 years ago)
Author:
simon04
Message:

see #14176 - Migrate ChangesetDiscussionComment to Instant

File:
1 edited

Legend:

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

    r11878 r17720  
    22package org.openstreetmap.josm.data.osm;
    33
    4 import java.util.Date;
    5 
    6 import org.openstreetmap.josm.tools.date.DateUtils;
     4import java.time.Instant;
    75
    86/**
     
    1311
    1412    /** date this comment was posted at */
    15     private final Date date;
     13    private final Instant date;
    1614    /** the user who posted the comment */
    1715    private final User user;
     
    2422     * @param user the user who posted the comment
    2523     */
    26     public ChangesetDiscussionComment(Date date, User user) {
    27         this.date = DateUtils.cloneDate(date);
     24    public ChangesetDiscussionComment(Instant date, User user) {
     25        this.date = date;
    2826        this.user = user;
    2927    }
     
    4947     * @return date this comment was posted at
    5048     */
    51     public final Date getDate() {
    52         return DateUtils.cloneDate(date);
     49    public final Instant getDate() {
     50        return date;
    5351    }
    5452
Note: See TracChangeset for help on using the changeset viewer.