Skip to content

Commit

Permalink
使用绝对路径声明包装类型
Browse files Browse the repository at this point in the history
  • Loading branch information
liujingxing committed Aug 25, 2022
1 parent 16597de commit 50fb26f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rxhttp/src/main/java/rxhttp/wrapper/utils/TypeUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ internal val Type.javaObjectType: Type
val type = this
if (type !is Class<*> || !type.isPrimitive) return type
return when (type.name) {
"boolean" -> Boolean::class.java
"char" -> Character::class.java
"byte" -> Byte::class.java
"short" -> Short::class.java
"int" -> Integer::class.java
"float" -> Float::class.java
"long" -> Long::class.java
"double" -> Double::class.java
"boolean" -> java.lang.Boolean::class.java
"char" -> java.lang.Character::class.java
"byte" -> java.lang.Byte::class.java
"short" -> java.lang.Short::class.java
"int" -> java.lang.Integer::class.java
"float" -> java.lang.Float::class.java
"long" -> java.lang.Long::class.java
"double" -> java.lang.Double::class.java
"void" -> Void::class.java
else -> type
}
Expand Down

0 comments on commit 50fb26f

Please sign in to comment.