4db38b4e0c
Motivation #1802 fixed ByteBuf implementations to ensure that the whole buffer region is preserved when capacity is increased, not just the readable part. The behaviour is still different however when the capacity is _decreased_ - data outside the currently-readable region is zeroed. Modifications Update ByteBuf capacity(int) implementations to also copy the whole buffer region when the new capacity is less than the current capacity. Result Consistent behaviour of ByteBuf#capacity(int) regardless of whether the new capacity is greater than or less than the current capacity. |
||
---|---|---|
.. | ||
src | ||
pom.xml |