RESOLVED - BATCH-558: TaskletAdapter still maps to CONTINUABLE by default

changed the default return value to ExitStatus.FINISHED
This commit is contained in:
robokaso
2008-04-07 08:19:22 +00:00
parent 0eac8f0c6f
commit 4a1fb49053
2 changed files with 4 additions and 7 deletions

View File

@@ -46,8 +46,8 @@ public class TaskletAdapter extends AbstractMethodInvokingDelegator implements T
/**
* If the result is an {@link ExitStatus} already just return that,
* otherwise return {@link ExitStatus#FINISHED} if the result is null and
* {@link ExitStatus#CONTINUABLE} if not.
* otherwise return {@link ExitStatus#FINISHED}.
*
* @param result the value returned by the delegate method
* @return an {@link ExitStatus} consistent with the result
*/
@@ -55,10 +55,7 @@ public class TaskletAdapter extends AbstractMethodInvokingDelegator implements T
if (result instanceof ExitStatus) {
return (ExitStatus) result;
}
if (result == null) {
return ExitStatus.FINISHED;
}
return ExitStatus.CONTINUABLE;
return ExitStatus.FINISHED;
}
}