ItEr44S10CUGravacionModelosUnidadesTraballoItEr43S12: Simplifiying expression since the effect of the two constructors is the same
This commit is contained in:
parent
f8735d396f
commit
5572a5b618
1 changed files with 2 additions and 3 deletions
|
|
@ -114,9 +114,8 @@ public abstract class OrderElement extends BaseEntity implements
|
|||
|
||||
private SchedulingState createSchedulingState() {
|
||||
List<SchedulingState> childrenStates = getChildrenStates();
|
||||
SchedulingState result = childrenStates.isEmpty() ? new SchedulingState(
|
||||
getSchedulingStateType())
|
||||
: new SchedulingState(schedulingStateType, childrenStates);
|
||||
SchedulingState result = new SchedulingState(getSchedulingStateType(),
|
||||
childrenStates);
|
||||
schedulingStateType = result.getType();
|
||||
result.addTypeChangeListener(new ITypeChangedListener() {
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue