]> source.dussan.org Git - sonarqube.git/commitdiff
issues - simplify BatchIssueDto
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Wed, 11 Feb 2015 13:48:08 +0000 (14:48 +0100)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Wed, 11 Feb 2015 15:43:02 +0000 (16:43 +0100)
sonar-core/src/main/java/org/sonar/core/issue/db/BatchIssueDto.java

index bd8dd1760c72728348c8ff0c4d5d7efa2501d651..c6c2e6012b9fb0799a4fba2bb6fc84f8831d282c 100644 (file)
@@ -36,7 +36,7 @@ public class BatchIssueDto {
   private String componentKey;
   private String ruleKey;
   private String ruleRepo;
-  private Long creationDate;
+  private Long creationTime;
 
   public String getAssigneeLogin() {
     return assigneeLogin;
@@ -147,20 +147,11 @@ public class BatchIssueDto {
   }
 
   public Date getCreationDate() {
-    return new Date(creationDate);
+    return new Date(creationTime);
   }
 
   public BatchIssueDto setCreationDate(Date creationDate) {
-    this.creationDate = creationDate.getTime();
-    return this;
-  }
-
-  public Long getCreationTime() {
-    return creationDate;
-  }
-
-  public BatchIssueDto setCreationTime(Long time) {
-    this.creationDate = time;
+    this.creationTime = creationDate.getTime();
     return this;
   }
 }