[Minor] State.canSetToStopped() allowed for WARNING
This commit is contained in:
parent
2d7ade06a8
commit
3ccfc3e942
|
@ -157,7 +157,7 @@ public enum State {
|
||||||
* @return true if {@link #ERROR} or {@link #STOPPED}
|
* @return true if {@link #ERROR} or {@link #STOPPED}
|
||||||
*/
|
*/
|
||||||
public boolean canSetToStopped() {
|
public boolean canSetToStopped() {
|
||||||
return this == ERROR || this == State.STOPPED;
|
return this == ERROR || this == State.STOPPED || this == State.WARNING;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue