CompositeChannelBuffer.toByteBuffer() should return the ByteBuffer with the same order

This commit is contained in:
Trustin Lee 2009-06-15 06:13:50 +00:00
parent 40bf0a63f1
commit f22f0b2035

View File

@ -488,7 +488,7 @@ public class CompositeChannelBuffer extends AbstractChannelBuffer {
}
ByteBuffer[] buffers = toByteBuffers(index, length);
ByteBuffer merged = ByteBuffer.allocate(length);
ByteBuffer merged = ByteBuffer.allocate(length).order(order());
for (ByteBuffer b: buffers) {
merged.put(b);
}