Merge pull request #16745 from izeye

* pr/16745:
  Use MergedAnnotation.getRoot() in PropertyMappingCheckBeanPostProcessor
pull/16930/head
Stephane Nicoll 6 years ago
commit 0635d86cf4

@ -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…
Cancel
Save