From 9af3961b9b7dc31e35cdc78cb0f88a472922c4c2 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Tue, 31 Mar 2026 17:49:21 +0200 Subject: [PATCH] Deprecate methodIdentification() in CacheAspectSupport for removal CacheAspectSupport currently contains a protected methodIdentification() method which is not used internally within the framework, and it appears that it was accidentally copied from TransactionAspectSupport when the caching support was first introduced. In light of that, this commit deprecates it for removal in 7.1. See gh-36576 Closes gh-36576 (cherry picked from commit 22adccd19087ec867615e8f9b337b5d30799ff19) --- .../springframework/cache/interceptor/CacheAspectSupport.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java b/spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java index bb3ae01bdff..8e5616e82e8 100644 --- a/spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java +++ b/spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java @@ -305,7 +305,9 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker * @param targetClass class the method is on * @return log message identifying this method * @see org.springframework.util.ClassUtils#getQualifiedMethodName + * @deprecated since 6.2.18 with no replacement, for removal in 7.1 */ + @Deprecated(since = "6.2.18", forRemoval = true) protected String methodIdentification(Method method, Class targetClass) { Method specificMethod = ClassUtils.getMostSpecificMethod(method, targetClass); return ClassUtils.getQualifiedMethodName(specificMethod);