FlatBuffers Version 2.0.8 (#7492)

This commit is contained in:
Derek Bailey
2022-08-29 20:43:36 -07:00
committed by GitHub
parent b190ce11b0
commit 06c5c7ed0b
125 changed files with 198 additions and 180 deletions

View File

@@ -500,12 +500,12 @@ class KotlinGenerator : public BaseGenerator {
if (!struct_def.fixed) {
FieldDef *key_field = nullptr;
// Generate verson check method.
// Generate version check method.
// Force compile time error if not using the same version
// runtime.
GenerateFunOneLine(
writer, "validateVersion", "", "",
[&]() { writer += "Constants.FLATBUFFERS_2_0_0()"; },
[&]() { writer += "Constants.FLATBUFFERS_2_0_8()"; },
options.gen_jvmstatic);
GenerateGetRootAsAccessors(namer_.Type(struct_def), writer, options);