aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2013-11-06 13:41:38 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2013-11-06 13:43:18 +0100
commit373924bdca4f3ac6fb21948625678c4238e6e664 (patch)
treeb91d222d771e56ac78ba815294a12525d95981bc /sonar-batch
parentac26f591d75ba30e76148d0bee01a22ce7f586fa (diff)
downloadsonarqube-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.java6
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;
}