ItEr34S12CUCreacionUnidadesPlanificacionItEr33S14: Reusing canBeScheduled method to check precondition at schedule
This commit is contained in:
parent
1503b6e175
commit
760ab9734d
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ public class SchedulingState {
|
|||
}
|
||||
|
||||
public void schedule() {
|
||||
if (type.isSomewhatScheduled()) {
|
||||
if (!canBeScheduled()) {
|
||||
throw new IllegalStateException("it's already somewhat scheduled");
|
||||
}
|
||||
setType(Type.SCHEDULING_POINT);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue