Do not allocate Netty's heap buffer explicitly

GitOrigin-RevId: 61900943e3b90fd37e7c804562b058024664f290
This commit is contained in:
vlad20012
2019-09-17 13:04:58 +00:00
committed by intellij-monorepo-bot
parent 986a885f3e
commit 42609085fc
@@ -12,7 +12,7 @@ import io.netty.buffer.ByteBufUtf8Writer
import org.jetbrains.io.JsonUtil
open class OutMessage() {
val buffer: ByteBuf = ByteBufAllocator.DEFAULT.heapBuffer()
val buffer: ByteBuf = ByteBufAllocator.DEFAULT.buffer()
val writer: JsonWriter = JsonWriter(ByteBufUtf8Writer(buffer))
private var finalized: Boolean = false