ItEr45S10CUAsignacionRecursosEspecificosAPlanificacionItEr44S16: Checking type too.
This commit is contained in:
parent
1091ede3ca
commit
6bc707eb67
1 changed files with 5 additions and 1 deletions
|
|
@ -72,7 +72,11 @@ public abstract class StrechesFunctionConfiguration implements
|
|||
|
||||
@Override
|
||||
public boolean isTargetedTo(AssignmentFunction function) {
|
||||
return function instanceof StretchesFunction;
|
||||
if (!(function instanceof StretchesFunction)) {
|
||||
return false;
|
||||
}
|
||||
StretchesFunction s = (StretchesFunction) function;
|
||||
return s.getType() == getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue