remove unecessary .name() in String methods

This commit is contained in:
Frédéric Brégier 2012-05-10 20:56:05 +03:00
parent eac75ddfbb
commit 3cbc0b5f32

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.name());
byte [] bytes = value.getBytes(charset);
ChannelBuffer buffer = ChannelBuffers.wrappedBuffer(bytes);
if (definedSize > 0) {
definedSize = buffer.readableBytes();