mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-26 00:39:01 +00:00
added additional cast for javac
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ public class StringToEnumFactory implements ConverterFactory<String, Enum> {
|
||||
}
|
||||
|
||||
public T convert(String source) throws Exception {
|
||||
return Enum.valueOf(enumType, source);
|
||||
return (T) Enum.valueOf(enumType, source);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user