ItEr29S06CUAsignacionGrupoRecursosAPlanificacionItEr28S06: Improving return type. Unnecessary casts are avoided
This commit is contained in:
parent
cd0f22cfe0
commit
b41f3abd24
2 changed files with 2 additions and 2 deletions
|
|
@ -204,7 +204,7 @@ public class GenericResourceAllocation extends
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<? extends DayAssignment> getAssignments() {
|
||||
public List<GenericDayAssignment> getAssignments() {
|
||||
return DayAssignment.orderedByDay(genericDayAssignments);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ public class GenericResourceAllocationTest {
|
|||
genericResourceAllocation.forResources(Arrays.asList(worker1))
|
||||
.allocate(ResourcesPerDay.amount(1));
|
||||
|
||||
List<GenericDayAssignment> assignments = (List<GenericDayAssignment>) genericResourceAllocation
|
||||
List<GenericDayAssignment> assignments = genericResourceAllocation
|
||||
.getAssignments();
|
||||
assertThat(assignments,
|
||||
haveResourceAllocation(genericResourceAllocation));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue