netty5/buffer/src
Norman Maurer 66b1731041 PooledByteBuf.capacity(...) not enforces maxCapacity()
Motivation:

PooledByteBuf.capacity(...) miss to enforce maxCapacity() and so its possible to increase the capacity of the buffer even if it will be bigger then maxCapacity().

Modifications:

- Correctly enforce maxCapacity()
- Add unit tests for capacity(...) calls.

Result:

Correctly enforce maxCapacity().
2017-02-01 18:45:54 +01:00
..
main/java/io/netty/buffer PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
test/java/io/netty/buffer PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00