aboutsummaryrefslogtreecommitdiff
path: root/template/java/snip-getter-setter.java
diff options
context:
space:
mode:
Diffstat (limited to 'template/java/snip-getter-setter.java')
-rw-r--r--template/java/snip-getter-setter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/java/snip-getter-setter.java b/template/java/snip-getter-setter.java
index a3ab7c4..11a8414 100644
--- a/template/java/snip-getter-setter.java
+++ b/template/java/snip-getter-setter.java
@@ -2,7 +2,7 @@
* get {{_input_:name}}
* @return {{_var_:name}}
*/
-public {{_var_:name}} get{{_expr_:substitute('{{_var_:name}}', '\w\+', '\u\0', '')}}() {
+public {{_input_:type}} get{{_expr_:substitute('{{_var_:name}}', '\w\+', '\u\0', '')}}() {
return {{_var_:name}};
}
@@ -10,6 +10,6 @@ public {{_var_:name}} get{{_expr_:substitute('{{_var_:name}}', '\w\+', '\u\0', '
* set {{_var_:name}}
* @param {{_var_:name}}
*/
-public void set{{_expr_:substitute('{{_var_:name}}', '\w\+', '\u\0', '')}}({{_var_:name}} {{_var_:name}}) {
+public void set{{_expr_:substitute('{{_var_:name}}', '\w\+', '\u\0', '')}}({{_var_:type}} {{_var_:name}}) {
this.{{_var_:name}} = {{_var_:name}};
}