diff --git a/src/lang/clojure-colors.kt b/src/lang/clojure-colors.kt index db7d494..8a1ca20 100644 --- a/src/lang/clojure-colors.kt +++ b/src/lang/clojure-colors.kt @@ -36,9 +36,9 @@ import com.intellij.openapi.project.Project import com.intellij.openapi.vfs.VirtualFile import com.intellij.psi.TokenType import com.intellij.psi.tree.IElementType -import com.intellij.util.containers.ContainerUtil import org.intellij.clojure.parser.ClojureLexer import org.intellij.clojure.psi.ClojureTypes.* +import java.util.concurrent.ConcurrentHashMap object ClojureColors { @JvmField val LINE_COMMENT = createTextAttributesKey("C_LINE_COMMENT", DefaultLanguageHighlighterColors.LINE_COMMENT) @@ -81,7 +81,7 @@ object ClojureColors { @JvmField val JAVA_INSTANCE_FIELD = createTextAttributesKey("C_JAVA_INSTANCE_FIELD", DefaultLanguageHighlighterColors.INSTANCE_FIELD) @JvmField val JAVA_INSTANCE_METHOD = createTextAttributesKey("C_JAVA_INSTANCE_METHOD", DefaultLanguageHighlighterColors.INSTANCE_METHOD) - @JvmField val NS_COLORS: Map = ContainerUtil.newConcurrentMap() + @JvmField val NS_COLORS: Map = ConcurrentHashMap() } class ClojureSyntaxHighlighterFactory : SyntaxHighlighterFactory() { diff --git a/src/lang/clojure-editor-psi.kt b/src/lang/clojure-editor-psi.kt index 8293c43..a2967e8 100644 --- a/src/lang/clojure-editor-psi.kt +++ b/src/lang/clojure-editor-psi.kt @@ -83,7 +83,6 @@ import com.intellij.util.ProcessingContext import com.intellij.util.SingleAlarm import com.intellij.util.SmartList import com.intellij.util.concurrency.AppExecutorUtil -import com.intellij.util.containers.ContainerUtil import com.intellij.util.containers.JBIterable import com.intellij.util.indexing.FileBasedIndex import org.intellij.clojure.ClojureConstants @@ -228,7 +227,7 @@ class ClojureCompletionContributor : CompletionContributor() { .substring(originalFile.text)) if (thisForm is CKeyword || thisForm == null) { - val visited = ContainerUtil.newTroveSet(qualifiedResult.prefixMatcher.prefix) + val visited = hashSetOf(qualifiedResult.prefixMatcher.prefix) val prefixNamespace = (thisForm as? CKeyword)?.namespace val consumer: (String, String, VirtualFile) -> Unit = consumer@ { name, ns, file -> if (!showAll && !noNsPrefix && ns != prefixNamespace) return@consumer @@ -809,7 +808,7 @@ class ClojureParamInlayHintsHandler : InlayParameterHintsProvider { override fun getHintInfo(element: PsiElement): HintInfo? = HintInfo.OptionInfo(OPTION) override fun getDefaultBlackList(): Set = emptySet() - override fun getSupportedOptions(): List