diff --git a/src/main/java/de/tum/in/www1/artemis/web/rest/dto/metrics/ExerciseInformationDTO.java b/src/main/java/de/tum/in/www1/artemis/web/rest/dto/metrics/ExerciseInformationDTO.java index 6e5068ff5654..15d5add87c68 100644 --- a/src/main/java/de/tum/in/www1/artemis/web/rest/dto/metrics/ExerciseInformationDTO.java +++ b/src/main/java/de/tum/in/www1/artemis/web/rest/dto/metrics/ExerciseInformationDTO.java @@ -34,6 +34,7 @@ public boolean equals(Object other) { } if (other instanceof ExerciseInformationDTO otherDTO) { + // Compare all fields for equality, for dates the isEqual method is used to compare the date and time return id == otherDTO.id && shortName.equals(otherDTO.shortName) && title.equals(otherDTO.title) && start.isEqual(otherDTO.start) && due.isEqual(otherDTO.due) && type.equals(otherDTO.type); }