Correct indentation of property mappings with conversion

This commit is contained in:
Andreas Gudian 2013-07-11 21:57:20 +02:00
parent a265c14d39
commit 1fc36d1415

View File

@ -42,15 +42,15 @@
</#if> </#if>
<#macro applyConversion targetBeanName targetAccessorName conversion> <#macro applyConversion targetBeanName targetAccessorName conversion>
<#if (conversion.exceptionTypes?size == 0) > <#if (conversion.exceptionTypes?size == 0) >
${targetBeanName}.${targetAccessorName}( <@includeModel object=conversion/> ); ${targetBeanName}.${targetAccessorName}( <@includeModel object=conversion/> );
<#else> <#else>
try { try {
${targetBeanName}.${targetAccessorName}( <@includeModel object=conversion/> ); ${targetBeanName}.${targetAccessorName}( <@includeModel object=conversion/> );
} }
<#list conversion.exceptionTypes as exceptionType> <#list conversion.exceptionTypes as exceptionType>
catch( ${exceptionType.name} e ) { catch( ${exceptionType.name} e ) {
throw new RuntimeException( e ); throw new RuntimeException( e );
} }
</#list> </#list>
</#if> </#if>
</#macro> </#macro>