From 8b62ea13a192381f1af7f0e701d69c4a0c40ba6c Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Tue, 31 Mar 2026 23:56:47 +0800 Subject: [PATCH] Remove deprecated methodIdentification() method in CacheAspectSupport The Javadoc said it's used for logging, but it's not used anywhere. Closes gh-36560 Signed-off-by: Yanming Zhou Signed-off-by: Sam Brannen <104798+sbrannen@users.noreply.github.com> Co-authored-by: Sam Brannen <104798+sbrannen@users.noreply.github.com> --- .../cache/interceptor/CacheAspectSupport.java | 17 ----------------- 1 file changed, 17 deletions(-) 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 36ce7f8802e..2b2bd0110ad 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 @@ -291,23 +291,6 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker this.initialized = true; } - - /** - * Convenience method to return a String representation of this Method - * for use in logging. Can be overridden in subclasses to provide a - * different identifier for the given method. - * @param method the method we're interested in - * @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); - } - protected Collection getCaches( CacheOperationInvocationContext context, CacheResolver cacheResolver) {