netty5/buffer/src
Nikolay Fedorovskikh f35047765f Avoid a double check ByteBuf#ensureWritable in ByteBufUtil
Motivation:

Methods `ByteBufUtil#writeUtf8` and `ByteBufUtil#writeAscii` contains a check `ByteBuf#ensureWritable` before the calling `ByteBuf#writeBytes`. But the `ByteBuf#writeBytes` also do a such check inside.

Modifications:

Make checks more targeted.

Result:

Less redundant method calls.
2017-06-28 19:00:01 +02:00
..
main/java/io/netty/buffer Avoid a double check ByteBuf#ensureWritable in ByteBufUtil 2017-06-28 19:00:01 +02:00
test/java/io/netty/buffer Move QueryStringDecoder.decodeHexByte into ByteBufUtil 2017-06-07 09:27:36 -07:00