Skip to content

Commit

Permalink
Fix the problem that Java 1.7 does not support Type.getTypeName (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoJiang committed Dec 5, 2023
1 parent 2ff7b2b commit 3c3aa50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kotlin.code.style=official

VERSION_NAME=1.9.20-1.1.0
VERSION_NAME=1.9.20-1.1.1

GROUP=com.kanyun.kudos

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private fun parseKudosObjectSpecial(
type: Type,
typeArguments: Array<Type>,
): 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()
Expand Down

0 comments on commit 3c3aa50

Please sign in to comment.