]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaw
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 6 Nov 2013 12:41:38 +0000 (13:41 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 6 Nov 2013 12:43:18 +0000 (13:43 +0100)
sonar-batch/src/main/java/org/sonar/batch/components/Period.java

index 04bdc89418fde876d1bb8961ea428a61d50f1207..a152ffae00d720566e6dbed43ccca6abe4850049 100644 (file)
@@ -20,6 +20,9 @@
 
 package org.sonar.batch.components;
 
+import javax.annotation.CheckForNull;
+import javax.annotation.Nullable;
+
 import java.util.Date;
 
 public class Period {
@@ -28,7 +31,7 @@ public class Period {
   private Date targetDate;
   private Date date;
 
-  public Period(int index, Date targetDate, Date date) {
+  public Period(int index, Date targetDate, @Nullable Date date) {
     this.index = index;
     this.targetDate = targetDate;
     this.date = date;
@@ -42,6 +45,7 @@ public class Period {
     return targetDate;
   }
 
+  @CheckForNull
   public Date getDate() {
     return date;
   }