case TASK_STARTING:
break;
}
return false;
}
<BUG>public static boolean isTerminal(TaskStatus taskStatus) {
switch (taskStatus.getState()) {
case TASK_FINISHED:</BUG>
case TASK_FAILED:
case TASK_KILLED:

case TASK_STARTING:
break;
}
return false;
}
public static boolean isTerminal(TaskStatus taskStatus) {
return isTerminal(taskStatus.getState());
}
public static boolean isTerminal(TaskState taskState) {
switch (taskState) {
case TASK_FINISHED:
case TASK_FAILED:
case TASK_KILLED:
