ObjectEncoder should allow zero estimated length as we did in DynamicChannelBuffer

This commit is contained in:
Trustin Lee 2008-08-19 10:08:20 +00:00
parent 6460f2a70f
commit c76451b874

View File

@ -53,7 +53,7 @@ public class ObjectEncoder implements ChannelDownstreamHandler {
}
public ObjectEncoder(int estimatedLength) {
if (estimatedLength <= 0) {
if (estimatedLength < 0) {
throw new IllegalArgumentException(
"estimatedLength: " + estimatedLength);
}