mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Read/Write ChronicleMap's boostrapping header with Wire
This commit is contained in:
@@ -20,9 +20,9 @@ import net.openhft.chronicle.bytes.Bytes;
|
||||
import net.openhft.chronicle.bytes.BytesMarshallable;
|
||||
import net.openhft.chronicle.hash.serialization.BytesReader;
|
||||
import net.openhft.chronicle.hash.serialization.BytesWriter;
|
||||
import net.openhft.chronicle.hash.serialization.impl.EnumMarshallable;
|
||||
import net.openhft.chronicle.map.ChronicleMap;
|
||||
import net.openhft.chronicle.map.ChronicleMapBuilder;
|
||||
import net.openhft.chronicle.map.Issue43Test;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -36,7 +36,7 @@ public class ComplexSerializationTest {
|
||||
List<B> list_;
|
||||
}
|
||||
|
||||
enum AMarshaller implements BytesReader<A>, BytesWriter<A> {
|
||||
enum AMarshaller implements BytesReader<A>, BytesWriter<A>, EnumMarshallable<AMarshaller> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
@@ -79,6 +79,11 @@ public class ComplexSerializationTest {
|
||||
}
|
||||
return using;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AMarshaller readResolve() {
|
||||
return INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
static class B implements BytesMarshallable {
|
||||
|
||||
Reference in New Issue
Block a user