Skip to content

Commit

Permalink
Update deprecated code that uses StepExecutionListenerSupport
Browse files Browse the repository at this point in the history
Closes #4538
  • Loading branch information
petrovskimario authored and fmbenhassine committed Mar 7, 2024
1 parent bfe7f38 commit 0d06a7c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,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;
}
}
Expand Down

0 comments on commit 0d06a7c

Please sign in to comment.