Update deprecated code that uses StepExecutionListenerSupport

Backported from 376d84888f

Issue #4538
This commit is contained in:
Mahmoud Ben Hassine
2024-03-07 10:51:36 +01:00
parent 5e18dd873c
commit c70d40dc26

View File

@@ -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;
}
}