From b3bc9ac976e63e93e79937855072c700b188742c Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 27 Apr 2020 12:30:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/utils/GsonExtensions.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/utils/GsonExtensions.kt b/app/src/main/java/io/legado/app/utils/GsonExtensions.kt index b2ae3d297..773cd8030 100644 --- a/app/src/main/java/io/legado/app/utils/GsonExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/GsonExtensions.kt @@ -50,16 +50,16 @@ class ParameterizedTypeImpl(private val clazz: Class<*>) : ParameterizedType { * 修复Int变为Double的问题 */ class MapDeserializerDoubleAsIntFix : - JsonDeserializer?> { + JsonDeserializer?> { @Throws(JsonParseException::class) override fun deserialize( jsonElement: JsonElement, type: Type, jsonDeserializationContext: JsonDeserializationContext - ): Map? { + ): Map? { @Suppress("unchecked_cast") - return read(jsonElement) as? Map + return read(jsonElement) as? Map } fun read(`in`: JsonElement): Any? {