diff --git a/gradle.properties b/gradle.properties index 891cce7..3c7b0c2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ kotlin.code.style=official -VERSION_NAME=1.8.20-1.1.0 +VERSION_NAME=1.8.20-1.1.1 GROUP=com.kanyun.kudos diff --git a/kudos-android-json-reader/src/main/java/com/kanyun/kudos/json/reader/adapter/KudosJsonAdapter.kt b/kudos-android-json-reader/src/main/java/com/kanyun/kudos/json/reader/adapter/KudosJsonAdapter.kt index 2a0abba..2e6284d 100644 --- a/kudos-android-json-reader/src/main/java/com/kanyun/kudos/json/reader/adapter/KudosJsonAdapter.kt +++ b/kudos-android-json-reader/src/main/java/com/kanyun/kudos/json/reader/adapter/KudosJsonAdapter.kt @@ -113,7 +113,7 @@ private fun parseKudosObjectSpecial( type: Type, typeArguments: Array, ): Any { - return if (type.typeName.endsWith("[]")) { + return if (type.toString().startsWith("class [")) { parseKudosArray(jsonReader, typeArguments) } else if (type is Class<*>) { val adapter = type.getDeclaredConstructor().newInstance()