fixed warnings
This commit is contained in:
parent
1232ea0d8b
commit
29367c4d5c
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user