mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
Correct indentation of property mappings with conversion
This commit is contained in:
parent
a265c14d39
commit
1fc36d1415
@ -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>
|
Loading…
x
Reference in New Issue
Block a user