Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
f1ad71b8
Commit
f1ad71b8
authored
Dec 20, 2017
by
Erwan Croze
👋🏻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing java enum wrapper
parent
db93f77c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wrappers/java/java_enum.mustache
wrappers/java/java_enum.mustache
+2
-2
No files found.
wrappers/java/java_enum.mustache
View file @
f1ad71b8
...
...
@@ -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
}}
");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment