Skip to content

Commit 4ad9f11

Browse files
committed
Merge pull request #38674 from shin-mallang
* pr/38674: Rename local variable in BatchAutoConfiguration Closes gh-38674
2 parents 1b3eef7 + f922b3d commit 4ad9f11

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)