netty5/buffer/src
Scott Mitchell 6312c2f00b CompositeByteBuf.addComponent always assume reference count ownership
Motivation:
The current interface for CompositeByteBuf.addComponent is not clear under what conditions ownership is transferred when addComponent is called. There should be a well defined behavior so that users can ensure that no leaks occur.

Modifications:
- CompositeByteBuf.addComponent should always assume reference count ownership

Result:
Users that call CompositeByteBuf.addComponent do not have to independently check if the buffer's ownership has been transferred and if not independently release the buffer.
Fixes https://github.com/netty/netty/issues/4760
2016-02-02 11:38:11 -08:00
..
main/java/io/netty/buffer CompositeByteBuf.addComponent always assume reference count ownership 2016-02-02 11:38:11 -08:00
test/java/io/netty/buffer Fix IndexOutOfBoundsException for CompositeByteBuf #4679 2016-01-08 19:11:57 -08:00