Skip to content

Reference Documentation Uses Deprecated Class StepExecutionListenerSupport #4538

Closed
@robertmcnees

Description

@robertmcnees
Contributor

In the reference documentation for controlling flow, the deprecated class StepExectuionListenerSupport is used in the Java code sample.

The doc can be found here. Specifically this code:

public class SkipCheckingListener extends StepExecutionListenerSupport {
    public ExitStatus afterStep(StepExecution stepExecution) {
        String exitCode = stepExecution.getExitStatus().getExitCode();
        if (!exitCode.equals(ExitStatus.FAILED.getExitCode()) &&
              stepExecution.getSkipCount() > 0) {
            return new ExitStatus("COMPLETED WITH SKIPS");
        }
        else {
            return null;
        }
    }
}

Activity

petrovskimario

petrovskimario commented on Feb 20, 2024

@petrovskimario
Contributor

Hello @robertmcnees
I can take this one if it is still available.

added a commit that references this issue on Feb 28, 2024

Closes spring-projects#4538 Updating deprecated code that used StepEx…

3e62a34
petrovskimario

petrovskimario commented on Feb 28, 2024

@petrovskimario
Contributor

@fmbenhassine @robertmcnees

I have submitted a pull request. Please review and if you have any suggestions let me know.

Thanks!

added this to the 5.2.0 milestone on Mar 7, 2024
added a commit that references this issue on Mar 7, 2024
0d06a7c

6 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Participants

      @fmbenhassine@petrovskimario@robertmcnees

      Issue actions

        Reference Documentation Uses Deprecated Class StepExecutionListenerSupport · Issue #4538 · spring-projects/spring-batch