diff options
-rw-r--r-- | generator/templates/function_template.java | 1 | ||||
-rw-r--r-- | generator/templates/struct_template.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/generator/templates/function_template.java b/generator/templates/function_template.java index 4372114d4..96ac7cf99 100644 --- a/generator/templates/function_template.java +++ b/generator/templates/function_template.java @@ -33,6 +33,7 @@ {%- endif %} public {{class_name}} set{{p.title}}({% if p.mandatory %}@NonNull {% endif %}{{p.return_type}} {{p.last}}) { setParameters({{p.key}}, {{p.last}}); + return this; } /** diff --git a/generator/templates/struct_template.java b/generator/templates/struct_template.java index f8424934e..5fcca3ba9 100644 --- a/generator/templates/struct_template.java +++ b/generator/templates/struct_template.java @@ -29,6 +29,7 @@ {%- endif %} public {{class_name}} set{{p.title}}({% if p.mandatory %}@NonNull {% endif %}{{p.return_type}} {{p.last}}) { setValue({{p.key}}, {{p.last}}); + return this; } /** |