From 038d69b7ac261e78717080a2abeecce4780eb5f2 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 17 Jan 2020 08:52:11 +0800 Subject: [PATCH] Rearrange case clauses --- .../net/mamoe/mirai/qqandroid/network/io/JceOutput.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/io/JceOutput.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/io/JceOutput.kt index f8c633353..5905b9afd 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/io/JceOutput.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/io/JceOutput.kt @@ -180,16 +180,16 @@ class JceOutput( fun 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)