Commit f1ad71b8 authored by Erwan Croze's avatar Erwan Croze 👋🏻

Fixing java enum wrapper

parent db93f77c
......@@ -39,7 +39,7 @@ public enum {{className}} {
{{/lines}}
*/
{{/doc}}
{{name}}({{value}}){{commarorsemicolon}}
{{name}}({{{value}}}){{commarorsemicolon}}
{{/values}}
protected final int mValue;
......@@ -51,7 +51,7 @@ public enum {{className}} {
static public {{className}} fromInt(int value) throws RuntimeException {
switch(value) {
{{#values}}
case {{value}}: return {{name}};
case {{{value}}}: return {{name}};
{{/values}}
default:
throw new RuntimeException("Unhandled enum value " + value + " for {{className}}");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment