mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Remove double and triple blank lines
This commit is contained in:
@@ -47,7 +47,6 @@ public class SerializerTest {
|
||||
testReadWriteValue(new MyTestClassObjectGraph(3));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testKeyMarshallable() throws Exception {
|
||||
testReadWriteKey("Test");
|
||||
@@ -64,7 +63,6 @@ public class SerializerTest {
|
||||
testReadWriteKey(new MyTestClassObjectGraph(3));
|
||||
}
|
||||
|
||||
|
||||
public void testReadWriteValue(Object value) throws Exception {
|
||||
|
||||
Class valueClass = value.getClass();
|
||||
@@ -72,12 +70,10 @@ public class SerializerTest {
|
||||
final ByteBufferBytes out = new ByteBufferBytes(ByteBuffer.allocateDirect(1024));
|
||||
ByteBufferBytes in = out.slice();
|
||||
|
||||
|
||||
ChronicleMapBuilder cBuilder = ChronicleMapBuilder.of(Integer.class, valueClass);
|
||||
|
||||
OnHeapUpdatableChronicleMapBuilder builder = (OnHeapUpdatableChronicleMapBuilder) cBuilder.delegate;
|
||||
|
||||
|
||||
builder.preMapConstruction(false);
|
||||
|
||||
WriterWithSize valueWriterWithSize = new WriterWithSize(builder.valueBuilder);
|
||||
@@ -88,12 +84,10 @@ public class SerializerTest {
|
||||
long position = out.position();
|
||||
in.limit(position);
|
||||
|
||||
|
||||
Object actual = valueReaderWithSize.read(in, null);
|
||||
Assert.assertEquals(actual, value);
|
||||
}
|
||||
|
||||
|
||||
public void testReadWriteKey(Object key) throws Exception {
|
||||
|
||||
Class clazz = key.getClass();
|
||||
@@ -120,7 +114,6 @@ public class SerializerTest {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static class MyTestClassExternalizable implements Externalizable {
|
||||
@@ -129,7 +122,6 @@ public class SerializerTest {
|
||||
public MyTestClassExternalizable() {
|
||||
}
|
||||
|
||||
|
||||
MyTestClassExternalizable(int a) {
|
||||
this.a = a;
|
||||
}
|
||||
@@ -263,5 +255,4 @@ public class SerializerTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user