Commit 652906ec authored by Johnny Lim's avatar Johnny Lim Committed by Stephane Nicoll

Use MergedAnnotation.getRoot() in PropertyMappingCheckBeanPostProcessor

Closes gh-16745
parent 9b73d656
...@@ -93,10 +93,7 @@ class PropertyMappingContextCustomizer implements ContextCustomizer { ...@@ -93,10 +93,7 @@ class PropertyMappingContextCustomizer implements ContextCustomizer {
} }
private Class<?> getRoot(MergedAnnotation<?> annotation) { private Class<?> getRoot(MergedAnnotation<?> annotation) {
while (annotation.getParent() != null) { return annotation.getRoot().getType();
annotation = annotation.getParent();
}
return annotation.getType();
} }
private String getAnnotationsDescription(Set<Class<?>> annotations) { private String getAnnotationsDescription(Set<Class<?>> annotations) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment