From b52b4d1b9a84a512bfc60a492671d78368eb66c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Thu, 8 May 2025 22:55:28 -0700 Subject: [PATCH] Polish `MyTaskExecutorConfiguration.kt` sample code --- .../multiple/MyTaskExecutorConfiguration.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/taskexecutionandscheduling/multiple/MyTaskExecutorConfiguration.kt b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/taskexecutionandscheduling/multiple/MyTaskExecutorConfiguration.kt index 39458319ad..7963b74ddf 100644 --- a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/taskexecutionandscheduling/multiple/MyTaskExecutorConfiguration.kt +++ b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/taskexecutionandscheduling/multiple/MyTaskExecutorConfiguration.kt @@ -33,7 +33,7 @@ class MyTaskExecutorConfiguration { @Bean("taskExecutor") fun taskExecutor(): ThreadPoolTaskExecutor { val threadPoolTaskExecutor = ThreadPoolTaskExecutor() - threadPoolTaskExecutor.threadNamePrefix = "async-" + threadPoolTaskExecutor.setThreadNamePrefix("async-") return threadPoolTaskExecutor }