ItEr40S05ValidacionEProbasFuncionaisItEr39S05: [Bug #188] Fixing bug. Relaxing precondition. The startDate and the endDate can be the same day.
This commit is contained in:
parent
3017d1c541
commit
9e2a6062b7
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
|
|||
|
||||
public void allocateUntil(LocalDate end) {
|
||||
Validate.notNull(end);
|
||||
Validate.isTrue(end.isAfter(new LocalDate(task.getStartDate())));
|
||||
Validate.isTrue(!end.isBefore(new LocalDate(task.getStartDate())));
|
||||
for (HoursModification each : hoursModifications) {
|
||||
each.allocateUntil(end);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue