#373 Removing superfluous null check when mapping parameter directly.

This commit is contained in:
sjaakd 2014-12-08 21:34:40 +01:00 committed by Andreas Gudian
parent c551a2d27d
commit 4730ded4d8

View File

@ -189,6 +189,7 @@ public class PropertyMapping extends ModelElement {
if ( targetAccessorType == TargetAccessorType.SETTER ) {
result = new SetterWrapper( result, method.getThrownTypes() );
if ( !sourceType.isPrimitive()
&& !sourceReference.getPropertyEntries().isEmpty() /* parameter null taken care of by beanmapper */
&& ( result.getType() == TYPE_CONVERTED
|| result.getType() == TYPE_CONVERTED_MAPPED
|| result.getType() == DIRECT && targetType.isPrimitive() ) ) {