From fdb454b9a48d9f0cf4bfd4a265a55f98f071f89d Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Sun, 31 Dec 2023 13:48:50 +0100 Subject: [PATCH] Declare JdkDynamicAopProxy's ProxiedInterfacesCache as private See gh-30499 --- .../java/org/springframework/aop/framework/AdvisedSupport.java | 2 +- .../org/springframework/aop/framework/JdkDynamicAopProxy.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java b/spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java index c79604c5a57c..efef17a00cd4 100644 --- a/spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java +++ b/spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java @@ -112,7 +112,7 @@ public class AdvisedSupport extends ProxyConfig implements Advised { /** * Optional field for {@link AopProxy} implementations to store metadata in. - * Used for {@link JdkDynamicAopProxy.ProxiedInterfacesCache}. + * Used by {@link JdkDynamicAopProxy}. * @since 6.1.3 * @see JdkDynamicAopProxy#JdkDynamicAopProxy(AdvisedSupport) */ diff --git a/spring-aop/src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java b/spring-aop/src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java index 806675ec65b1..ee2128323208 100644 --- a/spring-aop/src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java +++ b/spring-aop/src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java @@ -314,7 +314,7 @@ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFound * to be cached in {@link AdvisedSupport#proxyMetadataCache}. * @since 6.1.3 */ - static final class ProxiedInterfacesCache { + private static final class ProxiedInterfacesCache { final Class[] proxiedInterfaces;