Skip to content

Commit

Permalink
Fix the problem that Java 1.7 does not support Type.getTypeName (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoJiang authored Dec 4, 2023
1 parent 8f22ae4 commit 6c514dc
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.8.20-1.1.0
VERSION_NAME=1.8.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 6c514dc

Please sign in to comment.