Remove accidental usage of Type.getTypeName() which is a Java 8 API

Closes gh-6325
This commit is contained in:
Andy Wilkinson
2016-07-05 15:15:44 +01:00
parent 4b91965dde
commit 5bfc6a50fd

View File

@@ -308,8 +308,8 @@ public class ConfigurationPropertiesReportEndpoint
}
private boolean isReadable(BeanDescription beanDesc, BeanPropertyWriter writer) {
String parentType = beanDesc.getType().getRawClass().getName();
String type = writer.getType().getTypeName();
Class<?> parentType = beanDesc.getType().getRawClass();
Class<?> type = writer.getType().getRawClass();
AnnotatedMethod setter = findSetter(beanDesc, writer);
// If there's a setter, we assume it's OK to report on the value,
// similarly, if there's no setter but the package names match, we assume