Use MergedAnnotation.getRoot() in PropertyMappingCheckBeanPostProcessor
Closes gh-16745
This commit is contained in:
parent
9b73d6567e
commit
652906ec7c
|
|
@ -93,10 +93,7 @@ class PropertyMappingContextCustomizer implements ContextCustomizer {
|
|||
}
|
||||
|
||||
private Class<?> getRoot(MergedAnnotation<?> annotation) {
|
||||
while (annotation.getParent() != null) {
|
||||
annotation = annotation.getParent();
|
||||
}
|
||||
return annotation.getType();
|
||||
return annotation.getRoot().getType();
|
||||
}
|
||||
|
||||
private String getAnnotationsDescription(Set<Class<?>> annotations) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue