Merge pull request #16745 from izeye

* pr/16745:
  Use MergedAnnotation.getRoot() in PropertyMappingCheckBeanPostProcessor
This commit is contained in:
Stephane Nicoll
2019-05-21 09:26:51 +02:00

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