diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2013-11-06 13:41:38 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2013-11-06 13:43:18 +0100 |
commit | 373924bdca4f3ac6fb21948625678c4238e6e664 (patch) | |
tree | b91d222d771e56ac78ba815294a12525d95981bc /sonar-batch | |
parent | ac26f591d75ba30e76148d0bee01a22ce7f586fa (diff) | |
download | sonarqube-373924bdca4f3ac6fb21948625678c4238e6e664.tar.gz sonarqube-373924bdca4f3ac6fb21948625678c4238e6e664.zip |
Fix quality flaw
Diffstat (limited to 'sonar-batch')
-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; } |