From ff8bbdca1586cc5eed63f7c61bc71c8e50d3025e Mon Sep 17 00:00:00 2001 From: Theo Reichert Date: Tue, 9 Jan 2024 19:14:49 +0100 Subject: [PATCH] Resolve some intentionality issues --- src/main/java/catering/order/OrderController.java | 2 +- src/main/java/catering/staff/StaffForm.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/catering/order/OrderController.java b/src/main/java/catering/order/OrderController.java index 601c212..2ea4789 100644 --- a/src/main/java/catering/order/OrderController.java +++ b/src/main/java/catering/order/OrderController.java @@ -307,7 +307,7 @@ public class OrderController { public String calender(Model model) { ArrayList> datesOfMonth = new ArrayList>(28); LocalDateTime startDateTime = LocalDateTime.now(); - LocalDateTime endDateTime = startDateTime.plusDays(27).withHour(23).withMinute(59).withSecond(59); // FIXME: set me to end of day + LocalDateTime endDateTime = startDateTime.plusDays(27).withHour(23).withMinute(59).withSecond(59); LocalDate startDate = startDateTime.toLocalDate(); LocalDate endDate = endDateTime.toLocalDate(); diff --git a/src/main/java/catering/staff/StaffForm.java b/src/main/java/catering/staff/StaffForm.java index 3c4c9c9..be59a56 100644 --- a/src/main/java/catering/staff/StaffForm.java +++ b/src/main/java/catering/staff/StaffForm.java @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0-or-later -// SPDX-FileCopyrightText: 2023 swt23w23 +// SPDX-FileCopyrightText: 2023-2024 swt23w23 package catering.staff; import org.springframework.validation.Errors; @@ -15,6 +15,7 @@ public class StaffForm { private @PositiveOrZero @NotNull Double wage; public StaffForm() { + // No need for default values } public String getName() {