mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-27 01:19:02 +00:00
removed valueOf convention b/c of unwanted side effects
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2118 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
-8
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user