Disperse primitive type mapping in JavaToKotlinClassMap
This commit is contained in:
+5
-2
@@ -17,7 +17,10 @@
|
||||
package org.jetbrains.kotlin.load.java.structure.reflect
|
||||
|
||||
import org.jetbrains.kotlin.load.java.structure.JavaPrimitiveType
|
||||
import org.jetbrains.kotlin.resolve.jvm.JvmPrimitiveType
|
||||
|
||||
public class ReflectJavaPrimitiveType(override val type: Class<*>): ReflectJavaType(), JavaPrimitiveType {
|
||||
override fun getCanonicalText() = type.getName()
|
||||
public class ReflectJavaPrimitiveType(override val type: Class<*>) : ReflectJavaType(), JavaPrimitiveType {
|
||||
override fun getType() =
|
||||
if (type == Void.TYPE) null
|
||||
else JvmPrimitiveType.get(type.getName()).getPrimitiveType()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user