Replace deprecated hashing strategy for jvm caches

Deprecated FileUtil.PATH_HASHING_STRATEGY will be removed since Intellij 213, so replace it with another hashing strategy
This commit is contained in:
Aleksei.Cherepanov
2021-12-16 23:01:45 +03:00
committed by Space
parent cc8f278948
commit 7b41d382b8
@@ -18,6 +18,7 @@ package org.jetbrains.kotlin.incremental
import com.intellij.openapi.util.io.FileUtil
import com.intellij.openapi.util.io.FileUtil.toSystemIndependentName
import com.intellij.util.containers.CollectionFactory
import com.intellij.util.io.BooleanDataDescriptor
import com.intellij.util.io.EnumeratorStringDescriptor
import gnu.trove.THashSet
@@ -547,7 +548,7 @@ open class IncrementalJvmCache(
}
private object PathCollectionExternalizer :
CollectionExternalizer<String>(PathStringDescriptor, { THashSet(FileUtil.PATH_HASHING_STRATEGY) })
CollectionExternalizer<String>(PathStringDescriptor, { THashSet(CollectionFactory.createFilePathSet()) })
sealed class ChangeInfo(val fqName: FqName) {
open class MembersChanged(fqName: FqName, val names: Collection<String>) : ChangeInfo(fqName) {