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
This commit is contained in:
Wouter van Oortmerssen
2019-05-31 13:00:55 -07:00
parent c978b9ef1f
commit b652fcc3a7
33 changed files with 125 additions and 125 deletions

View File

@@ -632,7 +632,7 @@ public class FlatBufferBuilder {
*
* @param numfields The number of fields found in this object.
*/
public void startObject(int numfields) {
public void startTable(int numfields) {
notNested();
if (vtable == null || vtable.length < numfields) vtable = new int[numfields];
vtable_in_use = numfields;
@@ -757,11 +757,11 @@ public class FlatBufferBuilder {
* Finish off writing the object that is under construction.
*
* @return The offset to the object inside {@link #dataBuffer()}.
* @see #startObject(int)
* @see #startTable(int)
*/
public int endObject() {
public int endTable() {
if (vtable == null || !nested)
throw new AssertionError("FlatBuffers: endObject called without startObject");
throw new AssertionError("FlatBuffers: endTable called without startTable");
addInt(0);
int vtableloc = offset();
// Write out the current vtable.