import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
public class HBaseEdgeSerializer extends HBaseElementSerializer<HBaseEdge> {
public void write(Kryo kryo, Output output, HBaseEdge edge) {
<BUG>super.write(kryo, output, edge);
byte[] outVBytes = ValueUtils.serialize(edge.outVertex().id());
output.writeInt(outVBytes.length);
output.writeBytes(outVBytes);
byte[] inVBytes = ValueUtils.serialize(edge.inVertex().id());
output.writeInt(inVBytes.length);
output.writeBytes(inVBytes);</BUG>
}

import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
public class HBaseEdgeSerializer extends HBaseElementSerializer<HBaseEdge> {
public void write(Kryo kryo, Output output, HBaseEdge edge) {
super.write(kryo, output, edge);
kryo.writeClassAndObject(output, edge.outVertex().id());
kryo.writeClassAndObject(output, edge.inVertex().id());
}
