From 5d0700b9360399802bf929a0b7b845cb6bb73813 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 3 Apr 2018 12:21:03 +0200 Subject: [PATCH] AnnotationUtils.annotatedInterfaceCache available as deprecated field Issue: SPR-16675 --- .../org/springframework/core/annotation/AnnotationUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java b/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java index 26ac630d24..ea3facd7c9 100644 --- a/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java +++ b/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java @@ -126,6 +126,9 @@ public abstract class AnnotationUtils { private static final Map, Set> annotatedBaseTypeCache = new ConcurrentReferenceHashMap<>(256); + @Deprecated // just here for older tool versions trying to reflectively clear the cache + private static final Map, ?> annotatedInterfaceCache = annotatedBaseTypeCache; + private static final Map, Boolean> synthesizableCache = new ConcurrentReferenceHashMap<>(256);