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 <zhouyanming@gmail.com>
Signed-off-by: Sam Brannen <104798+sbrannen@users.noreply.github.com>
Co-authored-by: Sam Brannen <104798+sbrannen@users.noreply.github.com>
This commit is contained in:
Yanming Zhou
2026-03-31 17:56:47 +02:00
committed by GitHub
co-authored by Sam Brannen
parent 76ad7c9cc0
commit 8b62ea13a1
@@ -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<? extends Cache> getCaches(
CacheOperationInvocationContext<CacheOperation> context, CacheResolver cacheResolver) {