Skip to content

Commit

Permalink
#109 Use method call parenthesis only if the outFieldGetter is really…
Browse files Browse the repository at this point in the history
… a getter
  • Loading branch information
slemesle committed Nov 25, 2016
1 parent 435ac1d commit b19ec80
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ public MappingSourceNode setOrAssign(String value) {

public MappingSourceNode setOrAssignWithOutPut(String value) {

String formattedValue = inFieldPrefix + String.format(value, inGetter(), outFieldGetter + "()");
String formattedValue = inFieldPrefix + String.format(value, inGetter(), outFieldGetter +
( outFieldGetter.contains(".") ? "()" : ""));

return (assign ? MappingSourceNode.assign(outField, formattedValue) : MappingSourceNode.set(outField, formattedValue));
}
Expand Down

0 comments on commit b19ec80

Please sign in to comment.