diff --git a/src/main/java/org/jboss/netty/handler/codec/serialization/ObjectDecoderInputStream.java b/src/main/java/org/jboss/netty/handler/codec/serialization/ObjectDecoderInputStream.java index b40e621065..5f55ccf78b 100644 --- a/src/main/java/org/jboss/netty/handler/codec/serialization/ObjectDecoderInputStream.java +++ b/src/main/java/org/jboss/netty/handler/codec/serialization/ObjectDecoderInputStream.java @@ -125,9 +125,6 @@ public class ObjectDecoderInputStream extends InputStream implements "data length too big: " + dataLen + " (max: " + maxObjectSize + ')'); } - byte[] data = new byte[dataLen]; - readFully(data); - return new CompactObjectInputStream(in, classLoader).readObject(); }