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? {