From 2c981d99a29c1c6926f6b1c38c1d9c250fc32d36 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 1 Sep 2020 12:44:49 +0100 Subject: [PATCH] Avoid unnecessary reflection in TaskExecutorBuilder Closes gh-23107 --- .../java/org/springframework/boot/task/TaskExecutorBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/task/TaskExecutorBuilder.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/task/TaskExecutorBuilder.java index 94996b1a12..406d7d007b 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/task/TaskExecutorBuilder.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/task/TaskExecutorBuilder.java @@ -276,7 +276,7 @@ public class TaskExecutorBuilder { * @see #configure(ThreadPoolTaskExecutor) */ public ThreadPoolTaskExecutor build() { - return build(ThreadPoolTaskExecutor.class); + return configure(new ThreadPoolTaskExecutor()); } /**