[213] Switch to 213 platform
KTI-1114
This commit is contained in:
committed by
Space Team
parent
7f07b2a82c
commit
d4cffb8a5a
@@ -5,10 +5,11 @@
|
||||
|
||||
package org.jetbrains.kotlin.commonizer.utils
|
||||
|
||||
import com.intellij.util.containers.OpenTHashSet
|
||||
import com.intellij.util.containers.HashSetInterner
|
||||
|
||||
|
||||
class Interner<T : Any> {
|
||||
private val pool = OpenTHashSet<T>()
|
||||
private val pool = HashSetInterner<T>()
|
||||
|
||||
fun intern(value: T): T = pool.getOrAdd(value)
|
||||
fun intern(value: T): T = pool.intern(value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user