[213] Switch to 213 platform

KTI-1114
This commit is contained in:
Roman Golyshev
2022-07-19 17:15:29 +02:00
committed by Space Team
parent 7f07b2a82c
commit d4cffb8a5a
94 changed files with 173 additions and 212 deletions
@@ -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)
}