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
@@ -22,8 +22,6 @@ import net.openhft.chronicle.wire.WireOut;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.HashMap;
@@ -49,8 +47,7 @@ import static net.openhft.chronicle.hash.serialization.StatefulCopyable.copyIfNe
* @see ListMarshaller
* @see SetMarshaller
*/
public final class MapMarshaller<K, V>
implements BytesReader<Map<K, V>>, BytesWriter<Map<K, V>>,
public final class MapMarshaller<K, V> implements BytesReader<Map<K, V>>, BytesWriter<Map<K, V>>,
StatefulCopyable<MapMarshaller<K, V>> {
// Config fields
@@ -73,11 +70,6 @@ public final class MapMarshaller<K, V>
initTransients();
}
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
initTransients();
}
private void initTransients() {
orderedKeys = new ArrayDeque<>();
orderedValues = new ArrayDeque<>();