fixed warnings

This commit is contained in:
nathan 2020-08-18 23:16:44 +02:00
parent 1232ea0d8b
commit 29367c4d5c
2 changed files with 3 additions and 1 deletions

View File

@ -946,6 +946,7 @@ public class InputOutputByteBufTest extends KryoTestCase {
kryo.writeClassAndObject(byteBufferOutput, "Test string"); kryo.writeClassAndObject(byteBufferOutput, "Test string");
} }
@SuppressWarnings("unchecked")
@Test @Test
public void testFlushRoundTrip () throws Exception { public void testFlushRoundTrip () throws Exception {
Kryo kryo = new Kryo(); Kryo kryo = new Kryo();
@ -974,7 +975,7 @@ public class InputOutputByteBufTest extends KryoTestCase {
AeronOutput output = new AeronOutput(-1); AeronOutput output = new AeronOutput(-1);
assertNotNull(output); assertNotNull(output);
output.setBuffer(new byte[bufferSize], maxBufferSize); output.setBuffer(new byte[bufferSize]);
} }
@Test @Test

View File

@ -47,6 +47,7 @@ import com.esotericsoftware.kryo.unsafe.UnsafeOutput;
/** Convenience methods for round tripping objects. /** Convenience methods for round tripping objects.
* @author Nathan Sweet */ * @author Nathan Sweet */
@SuppressWarnings("unchecked")
abstract public class KryoTestCase { abstract public class KryoTestCase {
// When true, roundTrip will only do a single write/read to make debugging easier (breaks some tests). // When true, roundTrip will only do a single write/read to make debugging easier (breaks some tests).
static private final boolean debug = false; static private final boolean debug = false;