Remove temporary workaround for deprecations in Spring Batch

TaskExecutorJobLauncher has been improved so that its inherited
methods are no longer deprecated.

See gh-31623 and b599bfe5ac
This commit is contained in:
Andy Wilkinson 2022-07-19 17:59:58 +01:00
parent 8deef6cb42
commit 62ec5c19de

View File

@ -117,7 +117,6 @@ public class BasicBatchConfigurer implements BatchConfigurer, InitializingBean {
return factory.getObject();
}
@SuppressWarnings({ "deprecation", "removal" })
protected JobLauncher createJobLauncher() throws Exception {
TaskExecutorJobLauncher jobLauncher = new TaskExecutorJobLauncher();
jobLauncher.setJobRepository(getJobRepository());