From e08f355e6ffab83e4c088041a5890111a001ead9 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 25 Oct 2020 13:39:54 +0000 Subject: [PATCH] Use default allocator in testDecodeFragmented Signed-off-by: Graham --- .../kotlin/org/openrs2/protocol/js5/Js5ResponseDecoderTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol/src/test/kotlin/org/openrs2/protocol/js5/Js5ResponseDecoderTest.kt b/protocol/src/test/kotlin/org/openrs2/protocol/js5/Js5ResponseDecoderTest.kt index a605d37f..007d42f8 100644 --- a/protocol/src/test/kotlin/org/openrs2/protocol/js5/Js5ResponseDecoderTest.kt +++ b/protocol/src/test/kotlin/org/openrs2/protocol/js5/Js5ResponseDecoderTest.kt @@ -1,6 +1,7 @@ package org.openrs2.protocol.js5 import io.netty.buffer.ByteBuf +import io.netty.buffer.ByteBufAllocator import io.netty.buffer.Unpooled import io.netty.channel.embedded.EmbeddedChannel import io.netty.handler.codec.DecoderException @@ -40,7 +41,7 @@ object Js5ResponseDecoderTest { channel.writeInbound(wrappedBuffer(7, 'O'.toByte(), 'p'.toByte(), 'e'.toByte(), 'n'.toByte())) channel.writeInbound(wrappedBuffer('R'.toByte(), 'S'.toByte(), '2'.toByte())) - Unpooled.buffer().use { buf -> + ByteBufAllocator.DEFAULT.buffer().use { buf -> buf.writeByte(0) buf.writeInt(7) buf.writeCharSequence("OpenRS2", Charsets.UTF_8)