diff --git a/core/spring-boot/src/main/java/org/springframework/boot/convert/LenientObjectToEnumConverterFactory.java b/core/spring-boot/src/main/java/org/springframework/boot/convert/LenientObjectToEnumConverterFactory.java index 15abac18abe..1195fe4f847 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/convert/LenientObjectToEnumConverterFactory.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/convert/LenientObjectToEnumConverterFactory.java @@ -51,7 +51,7 @@ abstract class LenientObjectToEnumConverterFactory implements ConverterFactor @Override @SuppressWarnings("unchecked") - public > Converter getConverter(Class targetType) { + public > Converter getConverter(Class targetType) { Class enumType = targetType; while (enumType != null && !enumType.isEnum()) { enumType = enumType.getSuperclass();