Remove the complexity and API-transparency of implementing and supporting built-in serializability for marshallers and core implementation classes, as this is replaced with Wire Marshallable

This commit is contained in:
leventov
2016-01-14 16:07:22 +03:00
parent 92c0aec592
commit 28eeeb70e7
38 changed files with 36 additions and 199 deletions
@@ -38,7 +38,6 @@ import org.jetbrains.annotations.NotNull;
import java.io.File;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.RandomAccessFile;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
@@ -53,8 +52,6 @@ public class VanillaChronicleMap<K, V, R>
ExternalMapQueryContext<K, V, ?>>
implements AbstractChronicleMap<K, V> {
private static final long serialVersionUID = 4L;
/////////////////////////////////////////////////
// Value Data model
Class<V> valueClass;
@@ -161,11 +158,6 @@ public class VanillaChronicleMap<K, V, R>
cxt = new ThreadLocal<>();
}
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
initOwnTransients();
}
public final V checkValue(Object value) {
if (!valueClass.isInstance(value)) {
throw new ClassCastException("Value must be a " + valueClass.getName() +