From 39f6b85039d91a905197da86903469bac8ca03de Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Thu, 27 Jul 2023 09:14:04 +0200 Subject: [PATCH] Polish --- .../boot/autoconfigure/task/TaskExecutorConfigurations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/task/TaskExecutorConfigurations.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/task/TaskExecutorConfigurations.java index f80bbaf493..1b9ebade96 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/task/TaskExecutorConfigurations.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/task/TaskExecutorConfigurations.java @@ -50,7 +50,7 @@ class TaskExecutorConfigurations { ObjectProvider taskDecorator) { SimpleAsyncTaskExecutor executor = new SimpleAsyncTaskExecutor(properties.getThreadNamePrefix()); executor.setVirtualThreads(true); - executor.setTaskDecorator(taskDecorator.getIfUnique()); + taskDecorator.ifUnique(executor::setTaskDecorator); return executor; }