Skip to content

Commit f23e357

Browse files
author
Julian Kast
committed
Updated Function and Struct Template For the RPC Generator to make setters chainable
1 parent 13046fe commit f23e357

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

generator/templates/function_template.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{%- if p.deprecated is defined and p.deprecated is not none %}
3232
@Deprecated
3333
{%- endif %}
34-
public void set{{p.title}}({% if p.mandatory %}@NonNull {% endif %}{{p.return_type}} {{p.last}}) {
34+
public {{class_name}} set{{p.title}}({% if p.mandatory %}@NonNull {% endif %}{{p.return_type}} {{p.last}}) {
3535
setParameters({{p.key}}, {{p.last}});
3636
}
3737

generator/templates/struct_template.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{%- if p.deprecated is defined and p.deprecated is not none %}
2828
@Deprecated
2929
{%- endif %}
30-
public void set{{p.title}}({% if p.mandatory %}@NonNull {% endif %}{{p.return_type}} {{p.last}}) {
30+
public {{class_name}} set{{p.title}}({% if p.mandatory %}@NonNull {% endif %}{{p.return_type}} {{p.last}}) {
3131
setValue({{p.key}}, {{p.last}});
3232
}
3333

0 commit comments

Comments
 (0)