netty5/buffer
Scott Mitchell 63f5cdb0d5 ByteBuf#ensureWritable(int, boolean) should not throw
Motivation:
The javadocs for ByteBuf#ensureWritable(int, boolean) indicate that it should not throw, and instead the return code should indicate the result of the operation. Due to a bug in AbstractByteBuf it is possible for a resize to be attempted on a buffer that may exceed maxCapacity() and therefore throw.

Modifications:
- If there is not enough space in the buffer, and force is false, then a resize should not be attempted

Result:
AbstractByteBuf#ensureWritable(int, boolean) enforces the javadoc constraints and does not throw.
2017-05-09 00:12:25 -07:00
..
src ByteBuf#ensureWritable(int, boolean) should not throw 2017-05-09 00:12:25 -07:00
pom.xml [maven-release-plugin] prepare for next development iteration 2017-04-29 14:10:00 +02:00