From 5bfc6a50fdf1cfbf203cd3c8d9d06522b1639150 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 5 Jul 2016 15:15:44 +0100 Subject: [PATCH] Remove accidental usage of Type.getTypeName() which is a Java 8 API Closes gh-6325 --- .../endpoint/ConfigurationPropertiesReportEndpoint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpoint.java index 2c49593593..d868f78776 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpoint.java @@ -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