Revert for Java 5 compatibility

This commit is contained in:
Frédéric Brégier 2012-05-10 21:24:11 +03:00
parent 11b139ace7
commit 614bd93348

View File

@ -53,7 +53,7 @@ public class MemoryAttribute extends AbstractMemoryHttpData implements Attribute
if (value == null) {
throw new NullPointerException("value");
}
byte [] bytes = value.getBytes(charset);
byte [] bytes = value.getBytes(charset.name());
ChannelBuffer buffer = ChannelBuffers.wrappedBuffer(bytes);
if (definedSize > 0) {
definedSize = buffer.readableBytes();