#729 Fix trying to resolving constructor on primitive types (correct formatting)

This commit is contained in:
Oliver Ehrenmüller 2016-02-01 13:10:44 +01:00
parent 39158f649f
commit e42788ece2

View File

@ -544,8 +544,8 @@ public class MappingResolverImpl implements MappingResolver {
*/ */
private boolean hasCompatibleCopyConstructor(Type sourceType, Type targetType) { private boolean hasCompatibleCopyConstructor(Type sourceType, Type targetType) {
if ( targetType.isPrimitive() ) { if ( targetType.isPrimitive() ) {
return false; return false;
} }
List<ExecutableElement> targetTypeConstructors = ElementFilter.constructorsIn( List<ExecutableElement> targetTypeConstructors = ElementFilter.constructorsIn(
targetType.getTypeElement().getEnclosedElements() ); targetType.getTypeElement().getEnclosedElements() );