mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 14:18:07 +00:00
Fixing java enum wrapper
This commit is contained in:
parent
db93f77c48
commit
f1ad71b884
1 changed files with 2 additions and 2 deletions
|
|
@ -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}}");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue