From 64b09ffbdd3f1822a65b551b6d52b4bdecb12463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Gonz=C3=A1lez=20Fern=C3=A1ndez?= Date: Sat, 11 Dec 2010 22:42:40 +0100 Subject: [PATCH] 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 --- .../navalplanner/business/planner/entities/TaskElement.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/TaskElement.java b/navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/TaskElement.java index fd66e6773..52d9a85c2 100644 --- a/navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/TaskElement.java +++ b/navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/TaskElement.java @@ -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; }