diff options
author | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-05-31 13:00:55 -0700 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-05-31 13:00:55 -0700 |
commit | b652fcc3a7708f0cf5027748fd4d2df134eb6974 (patch) | |
tree | 81234c861c4cd401c0d4e01ba8a039aaf58b0f00 /tests/MyGame/Example/Stat.java | |
parent | c978b9ef1f74c4918a33ee26217c85e5a5949a5b (diff) | |
download | flatbuffers-b652fcc3a7708f0cf5027748fd4d2df134eb6974.tar.gz flatbuffers-b652fcc3a7708f0cf5027748fd4d2df134eb6974.tar.bz2 flatbuffers-b652fcc3a7708f0cf5027748fd4d2df134eb6974.zip |
Break internal Java/C# APIs
This is done on purpose, to avoid API version mismatches that
can cause bad decoding results, see:
https://github.com/google/flatbuffers/issues/5368
Change-Id: I2c857438377e080caad0e2d8bcc758c9b19bd6ec
Diffstat (limited to 'tests/MyGame/Example/Stat.java')
-rw-r--r-- | tests/MyGame/Example/Stat.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/MyGame/Example/Stat.java b/tests/MyGame/Example/Stat.java index f7f6b697..4b72e1d1 100644 --- a/tests/MyGame/Example/Stat.java +++ b/tests/MyGame/Example/Stat.java @@ -26,19 +26,19 @@ public final class Stat extends Table { int idOffset, long val, int count) { - builder.startObject(3); + builder.startTable(3); Stat.addVal(builder, val); Stat.addId(builder, idOffset); Stat.addCount(builder, count); return Stat.endStat(builder); } - public static void startStat(FlatBufferBuilder builder) { builder.startObject(3); } + public static void startStat(FlatBufferBuilder builder) { builder.startTable(3); } public static void addId(FlatBufferBuilder builder, int idOffset) { builder.addOffset(0, idOffset, 0); } public static void addVal(FlatBufferBuilder builder, long val) { builder.addLong(1, val, 0L); } public static void addCount(FlatBufferBuilder builder, int count) { builder.addShort(2, (short)count, (short)0); } public static int endStat(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } } |