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:
Manu Sridharan
2026-08-25 12:29:02 -07:00
committed by Phillip Webb
parent 45b520f6c2
commit 23fc7dd183
@@ -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();