perf[kotlin]: null safe

This commit is contained in:
godotg
2024-07-06 11:07:40 +08:00
parent e7f234202e
commit 4ea7d7d6f0
@@ -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)
}