<BUG>protected Object readObject(DataInput in) throws IOException {</BUG><CONTEXT>byte[] buf = bos.toByteArray();out.writeInt(buf.length);out.write(buf);}}<extra_id_0>byte type = in.readByte();if (type == 0) {return null;</CONTEXT>
public static Object readObject(DataInput in) throws IOException {