polish
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2125 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
c790d3d76e
commit
5a88d79f35
|
|
@ -56,7 +56,7 @@ public final class MappingConverter implements GenericConverter {
|
|||
}
|
||||
|
||||
private boolean isCopyByReference(TypeDescriptor sourceType, TypeDescriptor targetType) {
|
||||
if (BeanUtils.isSimpleValueType(targetType.getType()) || Enum.class.isAssignableFrom(targetType.getType())) {
|
||||
if (BeanUtils.isSimpleValueType(targetType.getType())) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue