Cleanup 193 compatibility fixes
This commit is contained in:
@@ -31,10 +31,8 @@ dependencies {
|
||||
|
||||
compileOnly(intellijDep())
|
||||
|
||||
Platform[192].orHigher {
|
||||
compileOnly(intellijPluginDep("java"))
|
||||
}
|
||||
|
||||
compileOnly(intellijPluginDep("java"))
|
||||
|
||||
compileOnly(intellijPluginDep("gradle"))
|
||||
}
|
||||
|
||||
|
||||
+6
-2
@@ -24,7 +24,7 @@ import com.intellij.psi.impl.java.stubs.index.JavaShortClassNameIndex
|
||||
import com.intellij.psi.search.GlobalSearchScope
|
||||
import com.intellij.psi.search.PsiShortNamesCache
|
||||
import com.intellij.psi.stubs.StubIndex
|
||||
import org.jetbrains.kotlin.idea.caches.PsiMethodProcessor
|
||||
import com.intellij.util.Processor
|
||||
import org.jetbrains.kotlin.idea.core.script.ScriptConfigurationManager
|
||||
|
||||
// Allow searching java classes in jars in script dependencies, this is needed for stuff like completion and autoimport
|
||||
@@ -47,7 +47,11 @@ class JavaClassesInScriptDependenciesShortNameCache(private val project: Project
|
||||
|
||||
override fun getMethodsByNameIfNotMoreThan(name: String, scope: GlobalSearchScope, maxCount: Int): Array<PsiMethod> = PsiMethod.EMPTY_ARRAY
|
||||
|
||||
override fun processMethodsWithName(name: String, scope: GlobalSearchScope, processor: PsiMethodProcessor) = true
|
||||
override fun processMethodsWithName(
|
||||
name: String,
|
||||
scope: GlobalSearchScope,
|
||||
processor: Processor<in PsiMethod>
|
||||
) = true
|
||||
|
||||
override fun getAllFieldNames() = emptyArray<String>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user