-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[JAVA][BUG] Do not use valueOf for numeric types for generating inner enums Current Master #21055
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 20 commits
0d6669e
833d716
56cda0a
56836da
32865b1
f5bb5dc
9778e8f
bd0254e
73381df
26242d9
3b84ee8
4fc5637
7e62551
1b6cc49
d83fe09
eae6725
83e7009
2567feb
47cc413
c0ef138
5cb9f0c
d7b3d93
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ | |
| {{>additionalEnumTypeAnnotations}}public enum {{datatypeWithEnum}} { | ||
| {{#allowableValues}} | ||
| {{#enumVars}}{{name}}({{dataType}}.valueOf({{{value}}})){{^-last}}, {{/-last}}{{#-last}};{{/-last}}{{/enumVars}} | ||
| {{#enumVars}}{{name}}({{^isNumeric}}{{dataType}}.valueOf({{/isNumeric}}{{{value}}}{{^isNumeric}}){{/isNumeric}}){{^-last}}, {{/-last}}{{#-last}};{{/-last}}{{/enumVars}} | ||
|
||
| {{/allowableValues}} | ||
|
|
||
| {{dataType}} value; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.