added additional cast for javac

master
Juergen Hoeller 16 years ago
parent e137b10978
commit e7eb684304
  1. 2
      org.springframework.core/src/main/java/org/springframework/core/convert/support/StringToEnumFactory.java

@ -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…
Cancel
Save