diff --git a/spring-core/src/main/java/org/springframework/util/ClassUtils.java b/spring-core/src/main/java/org/springframework/util/ClassUtils.java index cab2e454bb4..ee00015fa8a 100644 --- a/spring-core/src/main/java/org/springframework/util/ClassUtils.java +++ b/spring-core/src/main/java/org/springframework/util/ClassUtils.java @@ -136,12 +136,14 @@ public abstract class ClassUtils { /** * Cache for equivalent methods on a public interface implemented by the declaring class. + *

A {@code null} value signals that no public interface method was found for the key. */ private static final Map interfaceMethodCache = new ConcurrentReferenceHashMap<>(256); /** * Cache for equivalent public methods in a public declaring type within the type hierarchy * of the method's declaring class. + *

A {@code null} value signals that no publicly accessible method was found for the key. * @since 6.2 */ private static final Map publiclyAccessibleMethodCache = new ConcurrentReferenceHashMap<>(256);