From 88011a91a3142b114d4f3a7b632a81124c81135b Mon Sep 17 00:00:00 2001 From: Gunnar Morling Date: Wed, 14 Aug 2013 21:52:36 +0200 Subject: [PATCH] #61 Simplifying template a bit --- .../resources/org.mapstruct.ap.model.IterableMappingMethod.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/src/main/resources/org.mapstruct.ap.model.IterableMappingMethod.ftl b/processor/src/main/resources/org.mapstruct.ap.model.IterableMappingMethod.ftl index fa968c12e..48c0aee21 100644 --- a/processor/src/main/resources/org.mapstruct.ap.model.IterableMappingMethod.ftl +++ b/processor/src/main/resources/org.mapstruct.ap.model.IterableMappingMethod.ftl @@ -28,7 +28,7 @@ ${resultName}.clear(); <#else> <#-- Use the interface type on the left side, except it is java.lang.Iterable; use the implementation type - if present - on the right side --> - <#if resultType.fullyQualifiedName == "java.lang.Iterable">${resultType.implementationType.name}<#else>${resultType.name}<<@includeModel object=resultType.typeParameters[0]/>> ${resultName} = new <#if resultType.implementationType??>${resultType.implementationType.name}<#else>${resultType.name}<<@includeModel object=resultType.typeParameters[0]/>>(); + <#if resultType.fullyQualifiedName == "java.lang.Iterable"><@includeModel object=resultType.implementationType/><#else><@includeModel object=resultType/> ${resultName} = new <#if resultType.implementationType??><@includeModel object=resultType.implementationType/><#else><@includeModel object=resultType/>(); for ( <@includeModel object=sourceParameter.type.typeParameters[0]/> ${loopVariableName} : ${sourceParameter.name} ) {