Fix deprecated Interner/StringInterner usages after update to 202

This commit is contained in:
Alexander Udalov
2020-12-10 17:48:05 +01:00
parent f8c2f4a8d0
commit 8ae19f5cd7
8 changed files with 47 additions and 16 deletions
@@ -0,0 +1,11 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.utils
import com.intellij.util.containers.Interner
fun createStringInterner(): Interner<String> =
Interner.createStringInterner()
@@ -0,0 +1,12 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.utils
import com.intellij.util.containers.Interner
import com.intellij.util.containers.StringInterner
fun createStringInterner(): Interner<String> =
StringInterner()