netty5/buffer/src
Norman Maurer 76a3ea699d [#5629] Ensure direct ByteBuffer are wrapped in as direct ByteBuf.
Motivation:

We need to check if a ByteBuffer is direct via isDirect() to detect if its direct as hasArray() may also return true for a direct ByteBuffer.

See also:
https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html#allocateDirect-int-

Modifications:

Add isDirect() check.

Result:

Correct wrap a direct ByteBuffer in all cases.
2016-08-05 07:16:46 +02:00
..
main/java/io/netty/buffer [#5629] Ensure direct ByteBuffer are wrapped in as direct ByteBuf. 2016-08-05 07:16:46 +02:00
test/java/io/netty/buffer Cleanup : removed unused empty arrays and simplified initialization 2016-08-02 07:03:59 +02:00