Skip to content

Commit 39f6b85

Browse files
committed
Polish
1 parent b0615dd commit 39f6b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/task/TaskExecutorConfigurations.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ SimpleAsyncTaskExecutor applicationTaskExecutor(TaskExecutionProperties properti
5050
ObjectProvider<TaskDecorator> taskDecorator) {
5151
SimpleAsyncTaskExecutor executor = new SimpleAsyncTaskExecutor(properties.getThreadNamePrefix());
5252
executor.setVirtualThreads(true);
53-
executor.setTaskDecorator(taskDecorator.getIfUnique());
53+
taskDecorator.ifUnique(executor::setTaskDecorator);
5454
return executor;
5555
}
5656

0 commit comments

Comments
 (0)