ItEr32S12CUAsignacionGrupoRecursosAPlanificacionItEr31S15: If it's the same the allocation the merge process is not needed
This commit is contained in:
parent
89d4dced07
commit
beabdb382c
2 changed files with 6 additions and 0 deletions
|
|
@ -226,6 +226,9 @@ public class GenericResourceAllocation extends
|
|||
|
||||
@Override
|
||||
public void mergeAssignmentsAndResourcesPerDay(ResourceAllocation<?> modifications) {
|
||||
if (modifications == this) {
|
||||
return;
|
||||
}
|
||||
Validate.isTrue(modifications instanceof GenericResourceAllocation);
|
||||
mergeAssignments((GenericResourceAllocation) modifications);
|
||||
setResourcesPerDay(modifications.getResourcesPerDay());
|
||||
|
|
|
|||
|
|
@ -163,6 +163,9 @@ public class SpecificResourceAllocation extends
|
|||
|
||||
@Override
|
||||
public void mergeAssignmentsAndResourcesPerDay(ResourceAllocation<?> modifications) {
|
||||
if (modifications == this) {
|
||||
return;
|
||||
}
|
||||
Validate.isTrue(modifications instanceof SpecificResourceAllocation);
|
||||
mergeAssignments((SpecificResourceAllocation) modifications);
|
||||
setResourcesPerDay(modifications.getResourcesPerDay());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue