Apply @NotNull to start and end date

It was not applied to end date. Besides it must be applied to
IntraDayDate properties instead of Date properties because the Date
properties are generated from the IntraDayDate properties.

FEA: ItEr64OTS03PlanificacionHaciaAtras
This commit is contained in:
Óscar González Fernández 2010-12-11 22:42:40 +01:00
parent d0364042f2
commit 64b09ffbdd

View file

@ -232,12 +232,12 @@ public abstract class TaskElement extends BaseEntity {
return Collections.unmodifiableSet(dependenciesWithThisDestination);
}
@NotNull
public Date getStartDate() {
return startDate != null ? startDate.getDate().toDateTimeAtStartOfDay()
.toDate() : null;
}
@NotNull
public IntraDayDate getIntraDayStartDate() {
return startDate;
}
@ -304,6 +304,7 @@ public abstract class TaskElement extends BaseEntity {
+ "Please detect the caller and fix it";
}
@NotNull
public IntraDayDate getIntraDayEndDate() {
return endDate;
}