removed valueOf convention b/c of unwanted side effects

This commit is contained in:
Keith Donald
2009-10-14 21:37:57 +00:00
parent dc076ee6fe
commit 4d9bf3a45f
3 changed files with 5 additions and 46 deletions

View File

@@ -28,14 +28,6 @@ import org.springframework.core.convert.converter.Converter;
*/
final class ObjectToStringConverter implements Converter<Object, String> {
public Class<?> getSourceType() {
return Object.class;
}
public Class<?> getTargetType() {
return String.class;
}
public String convert(Object source) {
return source.toString();
}