Fix 'created' getter and setter. Add created to toString method
@@ -135,12 +135,12 @@ public class ArtifactEntry
public Date getCreated()
{
- return created != null ? new Date(created.getTime()) : null;
+ return created;
}
public void setCreated(Date created)
{
- this.created = created != null ? new Date(created.getTime()) : null;
+ this.created = created;
}
public Integer getDownloadCount()
@@ -166,6 +166,9 @@ public class ArtifactEntry
sb.append(", \n\tsizeInBytes='")
.append(sizeInBytes)
.append('\'');
+ sb.append(", \n\tcreated='")
+ .append(created)
+ .append('\'');
sb.append(", \n\tlastUpdated='")
.append(lastUpdated)
.append('\'');
