diff options
author | Kamil Rojewski <krojew@users.noreply.github.com> | 2019-02-21 19:50:13 +0100 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-02-21 19:50:13 +0100 |
commit | 8f8fb2b3677f55529f126f1adcc70b5dcdcd3290 (patch) | |
tree | 88c5c71fa1ee56f6c24e3b0a3ce0c8ff0b75f6f2 /tests/MyGame/Example | |
parent | 69d761d15e36bb05cf20b846a048894c72342ebf (diff) | |
download | flatbuffers-8f8fb2b3677f55529f126f1adcc70b5dcdcd3290.tar.gz flatbuffers-8f8fb2b3677f55529f126f1adcc70b5dcdcd3290.tar.bz2 flatbuffers-8f8fb2b3677f55529f126f1adcc70b5dcdcd3290.zip |
Fixed vector of unions crash in java (#5190)
* Fixed vector of unions crash in java
* Regenerated test code
* Fixed windows tests
Diffstat (limited to 'tests/MyGame/Example')
-rw-r--r-- | tests/MyGame/Example/Ability.java | 3 | ||||
-rw-r--r-- | tests/MyGame/Example/Monster.java | 3 | ||||
-rw-r--r-- | tests/MyGame/Example/Referrable.java | 3 | ||||
-rw-r--r-- | tests/MyGame/Example/Stat.java | 3 | ||||
-rw-r--r-- | tests/MyGame/Example/Test.java | 3 | ||||
-rw-r--r-- | tests/MyGame/Example/TestSimpleTableWithEnum.java | 3 | ||||
-rw-r--r-- | tests/MyGame/Example/TypeAliases.java | 3 | ||||
-rw-r--r-- | tests/MyGame/Example/Vec3.java | 3 |
8 files changed, 16 insertions, 8 deletions
diff --git a/tests/MyGame/Example/Ability.java b/tests/MyGame/Example/Ability.java index 0bd614c2..5e1c90e0 100644 --- a/tests/MyGame/Example/Ability.java +++ b/tests/MyGame/Example/Ability.java @@ -7,7 +7,8 @@ import java.lang.*; import java.util.*; import com.google.flatbuffers.*; -@SuppressWarnings("unused")public final class Ability extends Struct { +@SuppressWarnings("unused") +public final class Ability extends Struct { public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } public Ability __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } diff --git a/tests/MyGame/Example/Monster.java b/tests/MyGame/Example/Monster.java index 6feddb33..c7339750 100644 --- a/tests/MyGame/Example/Monster.java +++ b/tests/MyGame/Example/Monster.java @@ -7,7 +7,8 @@ import java.lang.*; import java.util.*; import com.google.flatbuffers.*; -@SuppressWarnings("unused")/** +@SuppressWarnings("unused") +/** * an example documentation comment: monster object */ public final class Monster extends Table { diff --git a/tests/MyGame/Example/Referrable.java b/tests/MyGame/Example/Referrable.java index e164256d..9398597e 100644 --- a/tests/MyGame/Example/Referrable.java +++ b/tests/MyGame/Example/Referrable.java @@ -7,7 +7,8 @@ import java.lang.*; import java.util.*; import com.google.flatbuffers.*; -@SuppressWarnings("unused")public final class Referrable extends Table { +@SuppressWarnings("unused") +public final class Referrable extends Table { public static Referrable getRootAsReferrable(ByteBuffer _bb) { return getRootAsReferrable(_bb, new Referrable()); } public static Referrable getRootAsReferrable(ByteBuffer _bb, Referrable obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } diff --git a/tests/MyGame/Example/Stat.java b/tests/MyGame/Example/Stat.java index 8f480363..73e2bc8f 100644 --- a/tests/MyGame/Example/Stat.java +++ b/tests/MyGame/Example/Stat.java @@ -7,7 +7,8 @@ import java.lang.*; import java.util.*; import com.google.flatbuffers.*; -@SuppressWarnings("unused")public final class Stat extends Table { +@SuppressWarnings("unused") +public final class Stat extends Table { public static Stat getRootAsStat(ByteBuffer _bb) { return getRootAsStat(_bb, new Stat()); } public static Stat getRootAsStat(ByteBuffer _bb, Stat obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } diff --git a/tests/MyGame/Example/Test.java b/tests/MyGame/Example/Test.java index 34b095a0..f584c463 100644 --- a/tests/MyGame/Example/Test.java +++ b/tests/MyGame/Example/Test.java @@ -7,7 +7,8 @@ import java.lang.*; import java.util.*; import com.google.flatbuffers.*; -@SuppressWarnings("unused")public final class Test extends Struct { +@SuppressWarnings("unused") +public final class Test extends Struct { public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } public Test __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } diff --git a/tests/MyGame/Example/TestSimpleTableWithEnum.java b/tests/MyGame/Example/TestSimpleTableWithEnum.java index 545c0ad3..ded3be49 100644 --- a/tests/MyGame/Example/TestSimpleTableWithEnum.java +++ b/tests/MyGame/Example/TestSimpleTableWithEnum.java @@ -7,7 +7,8 @@ import java.lang.*; import java.util.*; import com.google.flatbuffers.*; -@SuppressWarnings("unused")final class TestSimpleTableWithEnum extends Table { +@SuppressWarnings("unused") +final class TestSimpleTableWithEnum extends Table { public static TestSimpleTableWithEnum getRootAsTestSimpleTableWithEnum(ByteBuffer _bb) { return getRootAsTestSimpleTableWithEnum(_bb, new TestSimpleTableWithEnum()); } public static TestSimpleTableWithEnum getRootAsTestSimpleTableWithEnum(ByteBuffer _bb, TestSimpleTableWithEnum obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } diff --git a/tests/MyGame/Example/TypeAliases.java b/tests/MyGame/Example/TypeAliases.java index 497d7760..f74a3231 100644 --- a/tests/MyGame/Example/TypeAliases.java +++ b/tests/MyGame/Example/TypeAliases.java @@ -7,7 +7,8 @@ import java.lang.*; import java.util.*; import com.google.flatbuffers.*; -@SuppressWarnings("unused")public final class TypeAliases extends Table { +@SuppressWarnings("unused") +public final class TypeAliases extends Table { public static TypeAliases getRootAsTypeAliases(ByteBuffer _bb) { return getRootAsTypeAliases(_bb, new TypeAliases()); } public static TypeAliases getRootAsTypeAliases(ByteBuffer _bb, TypeAliases obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } diff --git a/tests/MyGame/Example/Vec3.java b/tests/MyGame/Example/Vec3.java index 66dfcd08..2e43f051 100644 --- a/tests/MyGame/Example/Vec3.java +++ b/tests/MyGame/Example/Vec3.java @@ -7,7 +7,8 @@ import java.lang.*; import java.util.*; import com.google.flatbuffers.*; -@SuppressWarnings("unused")public final class Vec3 extends Struct { +@SuppressWarnings("unused") +public final class Vec3 extends Struct { public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } public Vec3 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } |