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) {
|
if (value == null) {
|
||||||
throw new NullPointerException("value");
|
throw new NullPointerException("value");
|
||||||
}
|
}
|
||||||
byte [] bytes = value.getBytes(charset.name());
|
byte [] bytes = value.getBytes(charset);
|
||||||
ChannelBuffer buffer = ChannelBuffers.wrappedBuffer(bytes);
|
ChannelBuffer buffer = ChannelBuffers.wrappedBuffer(bytes);
|
||||||
if (definedSize > 0) {
|
if (definedSize > 0) {
|
||||||
definedSize = buffer.readableBytes();
|
definedSize = buffer.readableBytes();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user