Returning TaskService.java to original form

This commit is contained in:
Luis Rivas 2023-03-21 22:42:21 -05:00 committed by Alex
parent 06b7404ecd
commit ae51e9c0e7
1 changed files with 2 additions and 8 deletions

View File

@ -236,14 +236,8 @@ public interface TaskService {
Task forceCancelClaim(String taskId)
throws TaskNotFoundException,
InvalidOwnerException,
InvalidTaskStateException {
try {
return this.cancelClaim(taskId, true);
} catch (NotAuthorizedOnWorkbasketException e) {
throw new SystemException(
"this should not have happened. You've discovered a new bug! :D", e);
}
}
NotAuthorizedOnWorkbasketException,
InvalidTaskStateException;
/**
* Request review for an existing {@linkplain Task} that is in {@linkplain TaskState#CLAIMED}.