diff --git a/test/dorkboxTest/network/kryo/InputOutputByteBufTest.java b/test/dorkboxTest/network/kryo/InputOutputByteBufTest.java index e2872606..63644be0 100644 --- a/test/dorkboxTest/network/kryo/InputOutputByteBufTest.java +++ b/test/dorkboxTest/network/kryo/InputOutputByteBufTest.java @@ -946,6 +946,7 @@ public class InputOutputByteBufTest extends KryoTestCase { kryo.writeClassAndObject(byteBufferOutput, "Test string"); } + @SuppressWarnings("unchecked") @Test public void testFlushRoundTrip () throws Exception { Kryo kryo = new Kryo(); @@ -974,7 +975,7 @@ public class InputOutputByteBufTest extends KryoTestCase { AeronOutput output = new AeronOutput(-1); assertNotNull(output); - output.setBuffer(new byte[bufferSize], maxBufferSize); + output.setBuffer(new byte[bufferSize]); } @Test diff --git a/test/dorkboxTest/network/kryo/KryoTestCase.java b/test/dorkboxTest/network/kryo/KryoTestCase.java index 4cf41263..488b0889 100644 --- a/test/dorkboxTest/network/kryo/KryoTestCase.java +++ b/test/dorkboxTest/network/kryo/KryoTestCase.java @@ -47,6 +47,7 @@ import com.esotericsoftware.kryo.unsafe.UnsafeOutput; /** Convenience methods for round tripping objects. * @author Nathan Sweet */ +@SuppressWarnings("unchecked") abstract public class KryoTestCase { // When true, roundTrip will only do a single write/read to make debugging easier (breaks some tests). static private final boolean debug = false;