From 62ec5c19deee7920ce9404f65c2ab27d534593d8 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 19 Jul 2022 17:59:58 +0100 Subject: [PATCH] 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 b599bfe5ac3e68222fca34d8e0e9c54e49476b0f --- .../boot/autoconfigure/batch/BasicBatchConfigurer.java | 1 - 1 file changed, 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BasicBatchConfigurer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BasicBatchConfigurer.java index bf0701d8b3..960ddef77f 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BasicBatchConfigurer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BasicBatchConfigurer.java @@ -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());