mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Fix warning from NullAway 0.14.0 related to override
See gh-51409 Signed-off-by: Manu Sridharan <msridhar@gmail.com>
This commit is contained in:
committed by
Phillip Webb
parent
45b520f6c2
commit
23fc7dd183
+1
-1
@@ -51,7 +51,7 @@ abstract class LenientObjectToEnumConverterFactory<T> implements ConverterFactor
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public <E extends Enum<?>> Converter<T, E> getConverter(Class<E> targetType) {
|
||||
public <E extends Enum<?>> Converter<T, ? extends @Nullable E> getConverter(Class<E> targetType) {
|
||||
Class<?> enumType = targetType;
|
||||
while (enumType != null && !enumType.isEnum()) {
|
||||
enumType = enumType.getSuperclass();
|
||||
|
||||
Reference in New Issue
Block a user