From 88d4eac5377f16b48458308c066ebc9d525ed183 Mon Sep 17 00:00:00 2001 From: izeye Date: Wed, 29 Dec 2021 05:24:55 +0900 Subject: [PATCH 1/2] Remove AsyncConfigurerSupport reference in EnableAsync Javadoc See gh-27864 --- .../org/springframework/scheduling/annotation/EnableAsync.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java index 5e394ae7c75e..5e4b9290fae3 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java @@ -104,8 +104,7 @@ * } * *

If only one item needs to be customized, {@code null} can be returned to - * keep the default settings. Consider also extending from {@link AsyncConfigurerSupport} - * when possible. + * keep the default settings. * *

Note: In the above example the {@code ThreadPoolTaskExecutor} is not a fully managed * Spring bean. Add the {@code @Bean} annotation to the {@code getAsyncExecutor()} method From 8a7a046bf0073e73e85eab4856a7915fc9d46e40 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 29 Dec 2021 10:56:29 +0100 Subject: [PATCH 2/2] Update copyright year of changed file See gh-27864 --- .../org/springframework/scheduling/annotation/EnableAsync.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java index 5e4b9290fae3..0b7df3269e5d 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.