diff options
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/components/Period.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/components/Period.java b/sonar-batch/src/main/java/org/sonar/batch/components/Period.java index 04bdc89418f..a152ffae00d 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/components/Period.java +++ b/sonar-batch/src/main/java/org/sonar/batch/components/Period.java @@ -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; } |