mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#988 Strange enters in templates
This commit is contained in:
parent
70896245d7
commit
46363028bd
@ -26,6 +26,8 @@
|
|||||||
a local variable. Note that the local variable assignemnt is inside the IF statement for the
|
a local variable. Note that the local variable assignemnt is inside the IF statement for the
|
||||||
source presence check. Note also, that the else clause contains the default variable assignment if
|
source presence check. Note also, that the else clause contains the default variable assignment if
|
||||||
present.
|
present.
|
||||||
|
|
||||||
|
TODO: is only used by collection mapping currently.. should perhas be moved to there and not in common
|
||||||
-->
|
-->
|
||||||
<#macro handleNullCheck>
|
<#macro handleNullCheck>
|
||||||
<#if sourcePresenceCheckerReference??>
|
<#if sourcePresenceCheckerReference??>
|
||||||
@ -93,18 +95,14 @@ Performs a default assignment with a default value.
|
|||||||
|
|
||||||
purpose: To handle the writing to a field or using a method. The line is not closed with ';'
|
purpose: To handle the writing to a field or using a method. The line is not closed with ';'
|
||||||
-->
|
-->
|
||||||
<#macro handleWrite>
|
<#macro handleWrite><#if fieldAssignment> = <#nested><#else>( <#nested> )</#if></#macro>
|
||||||
<#t><#if fieldAssignment> = <#nested><#else>( <#nested> )</#if>
|
|
||||||
</#macro>
|
|
||||||
|
|
||||||
<#--
|
<#--
|
||||||
macro: handleWriteAccesing
|
macro: handleWriteAccesing
|
||||||
|
|
||||||
purpose: To handle accesing the write target type
|
purpose: To handle accesing the write target type
|
||||||
-->
|
-->
|
||||||
<#macro handleWriteAccesing>
|
<#macro handleWriteAccesing><#if fieldAssignment><#else>()</#if></#macro>
|
||||||
<#t><#if fieldAssignment><#else>()</#if>
|
|
||||||
</#macro>
|
|
||||||
<#--
|
<#--
|
||||||
macro: initTargetObject
|
macro: initTargetObject
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user