Skip to content

Commit 196f457

Browse files
chldppwls12fmbenhassine
authored andcommitted
Remove Duplicate If Condition in SimpleJobTests
1 parent 1379e9c commit 196f457

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

spring-batch-core/src/test/java/org/springframework/batch/core/job/SimpleJobTests.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -588,12 +588,7 @@ public void execute(StepExecution stepExecution)
588588
stepExecution.addFailureException(exception);
589589
return;
590590
}
591-
if (exception instanceof JobInterruptedException) {
592-
stepExecution.setExitStatus(ExitStatus.FAILED);
593-
stepExecution.setStatus(BatchStatus.FAILED);
594-
stepExecution.addFailureException(exception);
595-
return;
596-
}
591+
597592
if (runnable != null) {
598593
runnable.run();
599594
}

0 commit comments

Comments
 (0)