added additional cast for javac
This commit is contained in:
parent
e137b10978
commit
e7eb684304
|
|
@ -19,7 +19,7 @@ public class StringToEnumFactory implements ConverterFactory<String, Enum> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public T convert(String source) throws Exception {
|
public T convert(String source) throws Exception {
|
||||||
return Enum.valueOf(enumType, source);
|
return (T) Enum.valueOf(enumType, source);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue