mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-19 14:24:18 +00:00
perf[kotlin]: null safe
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user