Rename local variable in BatchAutoConfiguration

See gh-38674
This commit is contained in:
Donghun Shin 2023-12-06 23:23:54 +09:00 committed by Moritz Halbritter
parent 1b3eef7d62
commit f922b3de03
1 changed files with 3 additions and 3 deletions

View File

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