Rearrange case clauses

This commit is contained in:
Him188 2020-01-17 08:52:11 +08:00
parent a75843b678
commit 038d69b7ac

View File

@ -180,16 +180,16 @@ class JceOutput(
fun <T> writeObject(v: T, tag: Int) {
when (v) {
is Byte -> writeByte(v, tag)
is Boolean -> writeBoolean(v, tag)
is Short -> writeShort(v, tag)
is Int -> writeInt(v, tag)
is Long -> writeLong(v, tag)
is Float -> writeFloat(v, tag)
is Double -> writeDouble(v, tag)
is Map<*, *> -> writeMap(v, tag)
is Collection<*> -> writeCollection(v, tag)
is JceStruct -> writeJceStruct(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 ShortArray -> writeFully(v, tag)
is BooleanArray -> writeFully(v, tag)