Browse Source

Rename local variable in BatchAutoConfiguration

See gh-38674
pull/38818/head
Donghun Shin 2 years ago committed by Moritz Halbritter
parent
commit
f922b3de03
  1. 6
      spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchAutoConfiguration.java

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

@ -78,9 +78,9 @@ public class BatchAutoConfiguration {
public JobLauncherApplicationRunner jobLauncherApplicationRunner(JobLauncher jobLauncher, JobExplorer jobExplorer, public JobLauncherApplicationRunner jobLauncherApplicationRunner(JobLauncher jobLauncher, JobExplorer jobExplorer,
JobRepository jobRepository, BatchProperties properties) { JobRepository jobRepository, BatchProperties properties) {
JobLauncherApplicationRunner runner = new JobLauncherApplicationRunner(jobLauncher, jobExplorer, jobRepository); JobLauncherApplicationRunner runner = new JobLauncherApplicationRunner(jobLauncher, jobExplorer, jobRepository);
String jobNames = properties.getJob().getName(); String jobName = properties.getJob().getName();
if (StringUtils.hasText(jobNames)) { if (StringUtils.hasText(jobName)) {
runner.setJobName(jobNames); runner.setJobName(jobName);
} }
return runner; return runner;
} }

Loading…
Cancel
Save