[Fix] State.canSetToExecution() includes STOPPED

This commit is contained in:
Robert von Burg 2019-01-09 18:32:42 +01:00
parent b3c936c0b2
commit d4556e17c1
1 changed files with 2 additions and 2 deletions

View File

@ -168,10 +168,10 @@ public enum State {
}
/**
* @return true if {@link #CREATED} or {@link #PLANNING} or {@link #PLANNED} or {@link #EXECUTION}
* @return true if {@link #CREATED} or {@link #PLANNING} or {@link #PLANNED} or {@link #EXECUTION} or {@link #STOPPED}
*/
public boolean canSetToExecution() {
return this == CREATED || this == PLANNING || this == PLANNED || this == EXECUTION;
return this == CREATED || this == PLANNING || this == PLANNED || this == EXECUTION || this == State.STOPPED;
}
/**