upload
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user