Skip to content

Commit 00ca684

Browse files
ExtendedMilestone.java
- fixed fingbugs errors
1 parent 621795c commit 00ca684

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.jenkinsci.plugins.pipeline.github.client;
22

33
import org.eclipse.egit.github.core.Milestone;
4+
import org.eclipse.egit.github.core.util.DateUtils;
45

56
import java.util.Date;
67

@@ -14,18 +15,18 @@ public class ExtendedMilestone extends Milestone {
1415
private Date closedAt;
1516

1617
public Date getUpdatedAt() {
17-
return updatedAt;
18+
return DateUtils.clone(this.updatedAt);
1819
}
1920

20-
public void setUpdatedAt(Date updatedAt) {
21-
this.updatedAt = updatedAt;
21+
public void setUpdatedAt(final Date updatedAt) {
22+
this.updatedAt = DateUtils.clone(updatedAt);
2223
}
2324

2425
public Date getClosedAt() {
25-
return closedAt;
26+
return DateUtils.clone(this.closedAt);
2627
}
2728

28-
public void setClosedAt(Date closedAt) {
29-
this.closedAt = closedAt;
29+
public void setClosedAt(final Date closedAt) {
30+
this.closedAt = DateUtils.clone(closedAt);
3031
}
3132
}

0 commit comments

Comments
 (0)