Resolve some intentionality issues

This commit is contained in:
Theo Reichert 2024-01-09 19:14:49 +01:00 committed by Simon Bruder
parent d27c1958d7
commit ff8bbdca15
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 3 additions and 2 deletions

View file

@ -307,7 +307,7 @@ public class OrderController {
public String calender(Model model) { public String calender(Model model) {
ArrayList<ArrayList<String>> datesOfMonth = new ArrayList<ArrayList<String>>(28); ArrayList<ArrayList<String>> datesOfMonth = new ArrayList<ArrayList<String>>(28);
LocalDateTime startDateTime = LocalDateTime.now(); 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 startDate = startDateTime.toLocalDate();
LocalDate endDate = endDateTime.toLocalDate(); LocalDate endDate = endDateTime.toLocalDate();

View file

@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later // SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-FileCopyrightText: 2023 swt23w23 // SPDX-FileCopyrightText: 2023-2024 swt23w23
package catering.staff; package catering.staff;
import org.springframework.validation.Errors; import org.springframework.validation.Errors;
@ -15,6 +15,7 @@ public class StaffForm {
private @PositiveOrZero @NotNull Double wage; private @PositiveOrZero @NotNull Double wage;
public StaffForm() { public StaffForm() {
// No need for default values
} }
public String getName() { public String getName() {