mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-12 14:15:22 +00:00
perf[kotlin]: null safe
This commit is contained in:
1 parent
e7f234202e
commit
4ea7d7d6f0
1 file changed
+1
-1
@@ -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