From 01a865a1beb47ad63d3612ad3e5111f81b71f699 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Mon, 30 Mar 2026 09:44:31 +0800 Subject: [PATCH] Remove unused method "CacheAspectSupport::methodIdentification" The Javadoc said it's used for logging, but it's not used anywhere. Signed-off-by: Yanming Zhou --- .../cache/interceptor/CacheAspectSupport.java | 15 --------------- 1 file changed, 15 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 8fd02b97a749..2b2bd0110ad7 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,21 +291,6 @@ public void afterSingletonsInstantiated() { 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 - */ - protected String methodIdentification(Method method, Class targetClass) { - Method specificMethod = ClassUtils.getMostSpecificMethod(method, targetClass); - return ClassUtils.getQualifiedMethodName(specificMethod); - } - protected Collection getCaches( CacheOperationInvocationContext context, CacheResolver cacheResolver) {