This commit is contained in:
Jan-Philipp Luithardt
2025-12-03 12:09:31 +01:00
parent 9f4ff7ff6f
commit 670c3fbbd3
28 changed files with 29 additions and 38 deletions

View File

@@ -14,8 +14,8 @@ public class Task {
throw new IllegalArgumentException("Name/Description is null!");
}
if(name.isEmpty() || description.isEmpty()) {
throw new IllegalArgumentException("Name/Description is empty!");
if(name.isEmpty()) {
throw new IllegalArgumentException("Name is empty!");
}
this.name = name;
@@ -46,9 +46,6 @@ public class Task {
throw new IllegalArgumentException("Description is null!");
}
if(description.isEmpty()) {
throw new IllegalArgumentException("Description is empty!");
}
this.description = description;
}