Update deprecated code that uses StepExecutionListenerSupport
Backported from 376d84888f
Issue #4538
This commit is contained in:
@@ -1689,14 +1689,14 @@ the condition of the execution having skipped records, as the following example
|
||||
|
||||
[source, java]
|
||||
----
|
||||
public class SkipCheckingListener extends StepExecutionListenerSupport {
|
||||
public class SkipCheckingListener implements StepExecutionListener {
|
||||
@Override
|
||||
public ExitStatus afterStep(StepExecution stepExecution) {
|
||||
String exitCode = stepExecution.getExitStatus().getExitCode();
|
||||
if (!exitCode.equals(ExitStatus.FAILED.getExitCode()) &&
|
||||
stepExecution.getSkipCount() > 0) {
|
||||
stepExecution.getSkipCount() > 0) {
|
||||
return new ExitStatus("COMPLETED WITH SKIPS");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user