Remove unnecessary check for interruption in tasklet step listener

This commit is contained in:
dsyer
2008-07-07 14:22:23 +00:00
parent 057aa351a5
commit 5556e61fc4

View File

@@ -67,14 +67,4 @@ public class InfiniteLoopTasklet extends StepExecutionListenerSupport implements
this.stepExecution = stepExecution;
}
/* (non-Javadoc)
* @see org.springframework.batch.core.listener.StepExecutionListenerSupport#afterStep(org.springframework.batch.core.StepExecution)
*/
public ExitStatus afterStep(StepExecution stepExecution) {
if (stepExecution.isTerminateOnly()) {
stepExecution.setStatus(BatchStatus.STOPPED);
}
return stepExecution.getExitStatus();
}
}