mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polishing
This commit is contained in:
Vendored
+3
-3
@@ -194,11 +194,11 @@ public class SpringCacheAnnotationParser implements CacheAnnotationParser, Seria
|
||||
return new DefaultCacheConfig();
|
||||
}
|
||||
|
||||
private <T extends Annotation> Collection<T> getAnnotations(AnnotatedElement ae, Class<T> annotationType) {
|
||||
Collection<T> anns = new ArrayList<T>(2);
|
||||
private <A extends Annotation> Collection<A> getAnnotations(AnnotatedElement ae, Class<A> annotationType) {
|
||||
Collection<A> anns = new ArrayList<A>(2);
|
||||
|
||||
// look at raw annotation
|
||||
T ann = ae.getAnnotation(annotationType);
|
||||
A ann = ae.getAnnotation(annotationType);
|
||||
if (ann != null) {
|
||||
anns.add(AnnotationUtils.synthesizeAnnotation(ann, ae));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user