We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b1c017 commit cc78f68Copy full SHA for cc78f68
src/main/kotlin/org/tabooproject/development/completion/ReflectMethodReflectCompletion.kt
@@ -98,10 +98,8 @@ object GetPropertyReflectCompletionProvider : CompletionProvider<CompletionParam
98
99
val returnTypeElement = field.type
100
// 导入包
101
- val primitiveType = PsiTypes.primitiveTypes().firstOrNull {
102
- it == returnTypeElement
103
- }
104
- if (primitiveType != null && returnTypeElement.canonicalText != "java.lang.String") {
+ val primitiveType = returnTypeElement as? PsiPrimitiveType
+ if (primitiveType == null && returnTypeElement.canonicalText != "java.lang.String") {
105
ktFile.checkAndImportPackage(returnTypeElement.canonicalText)
106
}
107
val shortName = if (primitiveType != null) {
0 commit comments