Revert for Java 5 compatibility
This commit is contained in:
parent
11b139ace7
commit
614bd93348
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user