mirror of
https://github.com/google/flatbuffers.git
synced 2026-11-08 05:09:09 +00:00
[Java] Generate Longs from uint enums (#8727)
Co-authored-by: Neville Dipale <neville@urbanlogiq.com> Co-authored-by: Max Burke <max@urbanlogiq.com>
This commit is contained in:
co-authored by
Neville Dipale
Max Burke
parent
2951d5383a
commit
afd07bdec5
@@ -445,7 +445,8 @@ class JavaGenerator : public BaseGenerator {
|
||||
code += " ";
|
||||
code += namer_.Variant(ev) + " = ";
|
||||
code += enum_def.ToString(ev);
|
||||
if (enum_def.underlying_type.base_type == BASE_TYPE_LONG ||
|
||||
if (enum_def.underlying_type.base_type == BASE_TYPE_UINT ||
|
||||
enum_def.underlying_type.base_type == BASE_TYPE_LONG ||
|
||||
enum_def.underlying_type.base_type == BASE_TYPE_ULONG) {
|
||||
code += "L";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user