mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 14:09:25 +00:00
added additional cast for javac
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1218 50f2f4bb-b051-0410-bef5-90022cba6387
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