Skip to content

Commit fb6f7d9

Browse files
committed
move assigment in front of list
1 parent fedb680 commit fb6f7d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • processor/src/main/resources/org/mapstruct/tools/gem/processor

processor/src/main/resources/org/mapstruct/tools/gem/processor/Gem.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,18 @@ public class ${gemInfo.gemName} implements Gem {
133133
for ( Map.Entry<String, AnnotationValue> defaultMethod : defaultValues.entrySet() ) {
134134
String methodName = defaultMethod.getKey();
135135
<#if (gemInfo.gemValueInfos?size < 4)>
136+
<#assign indentString = " ">
136137
<#list gemInfo.gemValueInfos as gemValueInfo>
137138
<#if gemValueInfo_index != 0>else </#if>if ( "${gemValueInfo.name}".equals( methodName ) ) {
138-
<#assign indentString = " ">
139139
<@fillBuilder gemValueInfo, indentString/>
140140

141141
}
142142
</#list>
143143
<#else>
144144
switch ( methodName ) {
145+
<#assign indentString = " ">
145146
<#list gemInfo.gemValueInfos as gemValueInfo>
146147
case "${gemValueInfo.name}":
147-
<#assign indentString = " ">
148148
<@fillBuilder gemValueInfo, indentString/>
149149

150150
break;

0 commit comments

Comments
 (0)