Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0ce9de6

Browse files
Fix wrong behavior of JobRepository with empty identifying job parameters
- simplify brackets. Signed-off-by: Seungyong Hong <jesse1231@naver.com>
1 parent 45efc57 commit 0ce9de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎spring-batch-core/src/main/java/org/springframework/batch/core/repository/support/SimpleJobRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public JobExecution createJobExecution(String jobName, JobParameters jobParamete
110110
+ "The last execution ended with a failure that could not be rolled back, "
111111
+ "so it may be dangerous to proceed. Manual intervention is probably necessary.");
112112
}
113-
if ((status == BatchStatus.COMPLETED || status == BatchStatus.ABANDONED)) {
113+
if (status == BatchStatus.COMPLETED || status == BatchStatus.ABANDONED) {
114114
JobParameters identifyingJobParameters = new JobParameters(execution.getJobParameters().getIdentifyingParameters());
115115
throw new JobInstanceAlreadyCompleteException(
116116
"A job instance already exists and is complete for identifying parameters="

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /