mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 02:20:14 +08:00
Rearrange case clauses
This commit is contained in:
parent
a75843b678
commit
038d69b7ac
@ -180,16 +180,16 @@ class JceOutput(
|
|||||||
fun <T> writeObject(v: T, tag: Int) {
|
fun <T> writeObject(v: T, tag: Int) {
|
||||||
when (v) {
|
when (v) {
|
||||||
is Byte -> writeByte(v, tag)
|
is Byte -> writeByte(v, tag)
|
||||||
is Boolean -> writeBoolean(v, tag)
|
|
||||||
is Short -> writeShort(v, tag)
|
is Short -> writeShort(v, tag)
|
||||||
is Int -> writeInt(v, tag)
|
is Int -> writeInt(v, tag)
|
||||||
is Long -> writeLong(v, tag)
|
is Long -> writeLong(v, tag)
|
||||||
is Float -> writeFloat(v, tag)
|
is Float -> writeFloat(v, tag)
|
||||||
is Double -> writeDouble(v, tag)
|
is Double -> writeDouble(v, tag)
|
||||||
is Map<*, *> -> writeMap(v, tag)
|
|
||||||
is Collection<*> -> writeCollection(v, tag)
|
|
||||||
is JceStruct -> writeJceStruct(v, tag)
|
is JceStruct -> writeJceStruct(v, tag)
|
||||||
is ByteArray -> writeFully(v, tag)
|
is ByteArray -> writeFully(v, tag)
|
||||||
|
is Collection<*> -> writeCollection(v, tag)
|
||||||
|
is Boolean -> writeBoolean(v, tag)
|
||||||
|
is Map<*, *> -> writeMap(v, tag)
|
||||||
is IntArray -> writeFully(v, tag)
|
is IntArray -> writeFully(v, tag)
|
||||||
is ShortArray -> writeFully(v, tag)
|
is ShortArray -> writeFully(v, tag)
|
||||||
is BooleanArray -> writeFully(v, tag)
|
is BooleanArray -> writeFully(v, tag)
|
||||||
|
Loading…
Reference in New Issue
Block a user