diff --git a/protocol/src/main/resources/kotlin/ProtocolManagerTemplate.kt b/protocol/src/main/resources/kotlin/ProtocolManagerTemplate.kt index 92d6e573..116e6d59 100644 --- a/protocol/src/main/resources/kotlin/ProtocolManagerTemplate.kt +++ b/protocol/src/main/resources/kotlin/ProtocolManagerTemplate.kt @@ -31,7 +31,7 @@ class ProtocolManager { } @JvmStatic - fun read(buffer: ByteBuffer): Any? { + fun read(buffer: ByteBuffer): Any { val protocolId = buffer.readShort() return getProtocol(protocolId).read(buffer) }