remove unecessary .name() in String methods
This commit is contained in:
parent
eac75ddfbb
commit
3cbc0b5f32
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user