File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/main/java/org/jenkinsci/plugins/pipeline/github/client Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 11package org .jenkinsci .plugins .pipeline .github .client ;
22
33import org .eclipse .egit .github .core .Milestone ;
4+ import org .eclipse .egit .github .core .util .DateUtils ;
45
56import 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}
You can’t perform that action at this time.
0 commit comments