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");
}
@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

View File

@ -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;