AnnotationUtils.annotatedInterfaceCache available as deprecated field

Issue: SPR-16675
This commit is contained in:
Juergen Hoeller
2018-04-03 12:21:03 +02:00
parent 6102715b8d
commit 5d0700b936

View File

@@ -126,6 +126,9 @@ public abstract class AnnotationUtils {
private static final Map<Class<?>, Set<Method>> annotatedBaseTypeCache =
new ConcurrentReferenceHashMap<>(256);
@Deprecated // just here for older tool versions trying to reflectively clear the cache
private static final Map<Class<?>, ?> annotatedInterfaceCache = annotatedBaseTypeCache;
private static final Map<Class<? extends Annotation>, Boolean> synthesizableCache =
new ConcurrentReferenceHashMap<>(256);