mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 12:19:16 +00:00
removed valueOf convention b/c of unwanted side effects
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