fixed issue with EngineMap

This commit is contained in:
Rob Austin
2015-04-24 18:50:06 +01:00
parent 2bd94c3b42
commit df97973983
@@ -3,7 +3,6 @@ package net.openhft.chronicle.map;
import net.openhft.chronicle.bytes.Bytes;
import net.openhft.chronicle.hash.function.SerializableFunction;
import net.openhft.chronicle.wire.TextWire;
import net.openhft.chronicle.wire.ValueOut;
import net.openhft.chronicle.wire.Wire;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
@@ -81,7 +80,7 @@ public class EngineMap<K, V> implements ChronicleMap<K, V> {
if (b == null)
return null;
final Wire wire = toWire();
((ValueOut) b).object(b);
wire.getValueOut().object(b);
wire.bytes().flip();
return toWire().getValueIn().bytes();