From b84a781134b0a35fb375ae77ee5932462173c571 Mon Sep 17 00:00:00 2001 From: chrisly42 Date: Sun, 23 Jun 2019 19:24:36 +0200 Subject: [PATCH] Reverted removed method (identical to default implementation) that causes compatibility problem with older IDEA versions (again, sigh)... --- .../cajon/references/ExtractorReferenceContributor.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/de/platon42/intellij/plugins/cajon/references/ExtractorReferenceContributor.kt b/src/main/java/de/platon42/intellij/plugins/cajon/references/ExtractorReferenceContributor.kt index d170544..25a1937 100644 --- a/src/main/java/de/platon42/intellij/plugins/cajon/references/ExtractorReferenceContributor.kt +++ b/src/main/java/de/platon42/intellij/plugins/cajon/references/ExtractorReferenceContributor.kt @@ -7,6 +7,7 @@ import com.intellij.psi.* import com.intellij.psi.util.PropertyUtilBase import com.intellij.psi.util.PsiTreeUtil import com.intellij.psi.util.PsiTypesUtil +import com.intellij.util.ArrayUtil import com.intellij.util.ProcessingContext import com.siyeh.ig.callMatcher.CallMatcher import de.platon42.intellij.plugins.cajon.* @@ -70,6 +71,11 @@ class ExtractorReferenceContributor : PsiReferenceContributor() { class ExtractorReference(literal: PsiLiteralExpression, range: TextRange, private val targets: List) : PsiPolyVariantReferenceBase(literal, range, true) { + // Do not remove due to compatiblity issue with IDEA <= 2018.2 + override fun getVariants(): Array { + return ArrayUtil.EMPTY_OBJECT_ARRAY + } + override fun resolve(): PsiElement? { return multiResolve(false).map(ResolveResult::getElement).firstOrNull() }