Remove redundant explicit types
See gh-18754
This commit is contained in:
committed by
Stephane Nicoll
parent
ee0a66a2af
commit
9ece2e277f
@@ -55,7 +55,7 @@ abstract class LenientObjectToEnumConverterFactory<T> implements ConverterFactor
|
||||
enumType = enumType.getSuperclass();
|
||||
}
|
||||
Assert.notNull(enumType, () -> "The target type " + targetType.getName() + " does not refer to an enum");
|
||||
return new LenientToEnumConverter<E>((Class<E>) enumType);
|
||||
return new LenientToEnumConverter<>((Class<E>) enumType);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
Reference in New Issue
Block a user