Avoid unnecessary reflection in TaskExecutorBuilder

Closes gh-23107
This commit is contained in:
Andy Wilkinson
2020-09-01 12:44:49 +01:00
parent f1c5f69544
commit 2c981d99a2

View File

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