Use MergedAnnotation.getRoot() in PropertyMappingCheckBeanPostProcessor

Closes gh-16745
This commit is contained in:
Johnny Lim
2019-05-08 21:27:11 +09:00
committed by Stephane Nicoll
parent 9b73d6567e
commit 652906ec7c

View File

@@ -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) {