ItEr32S09ValidacionEProbasFuncionaisItEr31S12: Adding preconditions

bug #67
This commit is contained in:
Óscar González Fernández 2009-10-26 14:22:47 +01:00
parent c8b02d6db1
commit 23e243f1b5

View file

@ -91,6 +91,9 @@ abstract class LoadPeriodGenerator {
protected LoadPeriodGenerator(LocalDate start,
LocalDate end, List<ResourceAllocation<?>> allocationsOnInterval) {
Validate.notNull(start);
Validate.notNull(end);
Validate.notNull(allocationsOnInterval);
this.start = start;
this.end = end;
this.allocationsOnInterval = allocationsOnInterval;