Consistent non-exposure of inherited annotations in AnnotationMetadata

Closes gh-22766
This commit is contained in:
Juergen Hoeller
2019-04-08 15:59:06 +02:00
parent 2e7ed915cd
commit fd8fa301a6
3 changed files with 29 additions and 10 deletions

View File

@@ -68,7 +68,7 @@ public class StandardAnnotationMetadata extends StandardClassMetadata implements
*/
public StandardAnnotationMetadata(Class<?> introspectedClass, boolean nestedAnnotationsAsMap) {
super(introspectedClass);
this.annotations = introspectedClass.getAnnotations();
this.annotations = introspectedClass.getDeclaredAnnotations();
this.nestedAnnotationsAsMap = nestedAnnotationsAsMap;
}