fix broken tests: use buffer.remaining() instead of BufferUtil.space()

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2021-08-30 12:45:32 +10:00
parent 7569e4b07a
commit b2657f1376
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class ByteBufferCallbackAccumulator
public void writeTo(ByteBuffer buffer)
{
if (BufferUtil.space(buffer) < _length)
if (buffer.remaining() < _length)
throw new IllegalArgumentException("not enough buffer space remaining");
for (Entry entry : _entries)