Skip to content

Commit cc665dd

Browse files
committed
Merge branch '3.1.x'
Closes gh-38727
2 parents ad58607 + 4ad9f11 commit cc665dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchAutoConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ public class BatchAutoConfiguration {
7878
public JobLauncherApplicationRunner jobLauncherApplicationRunner(JobLauncher jobLauncher, JobExplorer jobExplorer,
7979
JobRepository jobRepository, BatchProperties properties) {
8080
JobLauncherApplicationRunner runner = new JobLauncherApplicationRunner(jobLauncher, jobExplorer, jobRepository);
81-
String jobNames = properties.getJob().getName();
82-
if (StringUtils.hasText(jobNames)) {
83-
runner.setJobName(jobNames);
81+
String jobName = properties.getJob().getName();
82+
if (StringUtils.hasText(jobName)) {
83+
runner.setJobName(jobName);
8484
}
8585
return runner;
8686
}

0 commit comments

Comments
 (0)