fix broken tests: use buffer.remaining() instead of BufferUtil.space()
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
7569e4b07a
commit
b2657f1376
|
@ -73,7 +73,7 @@ public class ByteBufferCallbackAccumulator
|
||||||
|
|
||||||
public void writeTo(ByteBuffer buffer)
|
public void writeTo(ByteBuffer buffer)
|
||||||
{
|
{
|
||||||
if (BufferUtil.space(buffer) < _length)
|
if (buffer.remaining() < _length)
|
||||||
throw new IllegalArgumentException("not enough buffer space remaining");
|
throw new IllegalArgumentException("not enough buffer space remaining");
|
||||||
|
|
||||||
for (Entry entry : _entries)
|
for (Entry entry : _entries)
|
||||||
|
|
Loading…
Reference in New Issue