Skip to content

Commit 672b71b

Browse files
author
Julian Kast
committed
Added missing return statement to RPC setters
1 parent f23e357 commit 672b71b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

generator/templates/function_template.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
{%- endif %}
3434
public {{class_name}} set{{p.title}}({% if p.mandatory %}@NonNull {% endif %}{{p.return_type}} {{p.last}}) {
3535
setParameters({{p.key}}, {{p.last}});
36+
return this;
3637
}
3738

3839
/**

generator/templates/struct_template.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
{%- endif %}
3030
public {{class_name}} set{{p.title}}({% if p.mandatory %}@NonNull {% endif %}{{p.return_type}} {{p.last}}) {
3131
setValue({{p.key}}, {{p.last}});
32+
return this;
3233
}
3334

3435
/**

0 commit comments

Comments
 (0)