Fix deprecated Interner/StringInterner usages after update to 202
This commit is contained in:
@@ -5,10 +5,8 @@
|
||||
|
||||
package org.jetbrains.kotlin.descriptors.commonizer.utils
|
||||
|
||||
import com.intellij.util.containers.WeakInterner
|
||||
|
||||
class Interner<T : Any> {
|
||||
private val pool = WeakInterner<T>()
|
||||
private val pool = com.intellij.util.containers.Interner.createWeakInterner<T>()
|
||||
|
||||
fun intern(value: T): T = pool.intern(value)
|
||||
}
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* 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.descriptors.commonizer.utils
|
||||
|
||||
import com.intellij.util.containers.WeakInterner
|
||||
|
||||
class Interner<T : Any> {
|
||||
private val pool = WeakInterner<T>()
|
||||
|
||||
fun intern(value: T): T = pool.intern(value)
|
||||
}
|
||||
Reference in New Issue
Block a user