Skip to content

Commit 376d848

Browse files
petrovskimariofmbenhassine
authored andcommitted
Update deprecated code that uses StepExecutionListenerSupport
Closes #4538
1 parent 4b8e504 commit 376d848

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-batch-docs/modules/ROOT/pages/step/controlling-flow.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -294,14 +294,14 @@ the condition of the execution having skipped records, as the following example
294294

295295
[source, java]
296296
----
297-
public class SkipCheckingListener extends StepExecutionListenerSupport {
297+
public class SkipCheckingListener implements StepExecutionListener {
298+
@Override
298299
public ExitStatus afterStep(StepExecution stepExecution) {
299300
String exitCode = stepExecution.getExitStatus().getExitCode();
300301
if (!exitCode.equals(ExitStatus.FAILED.getExitCode()) &&
301-
stepExecution.getSkipCount() > 0) {
302+
stepExecution.getSkipCount() > 0) {
302303
return new ExitStatus("COMPLETED WITH SKIPS");
303-
}
304-
else {
304+
} else {
305305
return null;
306306
}
307307
}

0 commit comments

Comments
 (0)