From: Julien Lancelot Date: Wed, 6 Nov 2013 12:41:38 +0000 (+0100) Subject: Fix quality flaw X-Git-Tag: 4.1-RC1~320 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=373924bdca4f3ac6fb21948625678c4238e6e664;p=sonarqube.git Fix quality flaw --- 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; }