Changeset 11821 in josm for trunk/src/org/openstreetmap/josm/data/notes/NoteComment.java
- Timestamp:
- 2017-04-01T23:27:46+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/notes/NoteComment.java
r10134 r11821 2 2 package org.openstreetmap.josm.data.notes; 3 3 4 import java.util.Comparator; 4 5 import java.util.Date; 5 6 … … 38 39 } 39 40 41 /** Sorts note comments strictly by creation date */ 42 public static final Comparator<NoteComment> DATE_COMPARATOR = (n1, n2) -> n1.commentTimestamp.compareTo(n2.commentTimestamp); 43 40 44 /** 41 45 * @param createDate The time at which this comment was added … … 48 52 this.text = commentText; 49 53 this.user = user; 50 this.commentTimestamp = createDate;54 this.commentTimestamp = Note.cloneDate(createDate); 51 55 this.action = action; 52 56 this.isNew = isNew; … … 65 69 /** @return The time at which this comment was created */ 66 70 public Date getCommentTimestamp() { 67 return commentTimestamp;71 return Note.cloneDate(commentTimestamp); 68 72 } 69 73
Note:
See TracChangeset
for help on using the changeset viewer.