Remove redundant explicit types

See gh-18754
This commit is contained in:
dreis2211
2019-10-26 23:34:08 +02:00
committed by Stephane Nicoll
parent ee0a66a2af
commit 9ece2e277f
11 changed files with 11 additions and 12 deletions

View File

@@ -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")