Skip to content

Commit

Permalink
fix: use ExitCodeGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
klopfdreh committed Jul 17, 2023
1 parent a3caa86 commit 195d136
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.List;

import org.springframework.batch.core.UnexpectedJobExecutionException;
import org.springframework.boot.ExitCodeGenerator;
import org.springframework.cloud.task.repository.TaskExecution;

/**
Expand All @@ -29,7 +30,7 @@
*
* @author Tobias Soloschenko
*/
public class UnexpectedTaskExecutionException extends UnexpectedJobExecutionException {
public class UnexpectedTaskExecutionException extends UnexpectedJobExecutionException implements ExitCodeGenerator {

private static final long serialVersionUID = 3494615323781500165L;

Expand Down Expand Up @@ -153,7 +154,7 @@ public long getExecutionId() {
return this.executionId;
}

public Integer getExitCode() {
public int getExitCode() {
return this.exitCode;
}

Expand Down

0 comments on commit 195d136

Please sign in to comment.