Avoid unnecessary reflection in TaskExecutorBuilder

Closes gh-23107
pull/23161/head
Andy Wilkinson 4 years ago
parent f1c5f69544
commit 2c981d99a2

@ -276,7 +276,7 @@ public class TaskExecutorBuilder {
* @see #configure(ThreadPoolTaskExecutor)
*/
public ThreadPoolTaskExecutor build() {
return build(ThreadPoolTaskExecutor.class);
return configure(new ThreadPoolTaskExecutor());
}
/**

Loading…
Cancel
Save