From 2f3a9dbc685f03ad0fc9f58ba4bb60158c9da24e Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 15 Dec 2021 11:51:21 +0100 Subject: [PATCH] Deprecate CachingConfigurerSupport and AsyncConfigurerSupport Closes gh-27813 --- .../cache/jcache/config/JCacheConfigurerSupport.java | 4 +++- .../cache/annotation/CachingConfigurerSupport.java | 4 +++- .../scheduling/annotation/AsyncConfigurerSupport.java | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/spring-context-support/src/main/java/org/springframework/cache/jcache/config/JCacheConfigurerSupport.java b/spring-context-support/src/main/java/org/springframework/cache/jcache/config/JCacheConfigurerSupport.java index e36c4fb6df..b20755c8d9 100644 --- a/spring-context-support/src/main/java/org/springframework/cache/jcache/config/JCacheConfigurerSupport.java +++ b/spring-context-support/src/main/java/org/springframework/cache/jcache/config/JCacheConfigurerSupport.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. @@ -31,7 +31,9 @@ import org.springframework.lang.Nullable; * @since 4.1 * @see JCacheConfigurer * @see CachingConfigurerSupport + * @deprecated as of 6.0 in favor of implementing {@link JCacheConfigurer} directly */ +@Deprecated public class JCacheConfigurerSupport extends CachingConfigurerSupport implements JCacheConfigurer { @Override diff --git a/spring-context/src/main/java/org/springframework/cache/annotation/CachingConfigurerSupport.java b/spring-context/src/main/java/org/springframework/cache/annotation/CachingConfigurerSupport.java index f077742f7f..f2e913358e 100644 --- a/spring-context/src/main/java/org/springframework/cache/annotation/CachingConfigurerSupport.java +++ b/spring-context/src/main/java/org/springframework/cache/annotation/CachingConfigurerSupport.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. @@ -29,7 +29,9 @@ import org.springframework.lang.Nullable; * @author Stephane Nicoll * @since 4.1 * @see CachingConfigurer + * @deprecated as of 6.0 in favor of implementing {@link CachingConfigurer} directly */ +@Deprecated public class CachingConfigurerSupport implements CachingConfigurer { @Override diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/AsyncConfigurerSupport.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/AsyncConfigurerSupport.java index 34acb2ce9f..a3cece5a64 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/AsyncConfigurerSupport.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/AsyncConfigurerSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 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. @@ -28,7 +28,9 @@ import org.springframework.lang.Nullable; * * @author Stephane Nicoll * @since 4.1 + * @deprecated as of 6.0 in favor of implementing {@link AsyncConfigurer} directly */ +@Deprecated public class AsyncConfigurerSupport implements AsyncConfigurer { @Override