netty5/buffer/src/test/java/io
Nikolay Fedorovskikh f8ff834f03 Checks accessibility in the #slice and #duplicate methods of ByteBuf (#7846)
Motivation:
The `ByteBuf#slice` and `ByteBuf#duplicate` methods should check
an accessibility to prevent creation slice or duplicate
of released buffer. At now this works not in the all scenarios.

Modifications:
Add missed checks.

Result:
More correct and consistent behavior of `ByteBuf` methods.
2018-04-10 10:41:50 +02:00
..
netty/buffer Checks accessibility in the #slice and #duplicate methods of ByteBuf (#7846) 2018-04-10 10:41:50 +02:00