Consistent non-exposure of inherited annotations in AnnotationMetadata
Closes gh-22766
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user