diff --git a/platform/vcs-log/graph/src/com/intellij/vcs/log/graph/impl/permanent/PermanentCommitsInfoImpl.kt b/platform/vcs-log/graph/src/com/intellij/vcs/log/graph/impl/permanent/PermanentCommitsInfoImpl.kt index 7096058a7710..e864868d83df 100644 --- a/platform/vcs-log/graph/src/com/intellij/vcs/log/graph/impl/permanent/PermanentCommitsInfoImpl.kt +++ b/platform/vcs-log/graph/src/com/intellij/vcs/log/graph/impl/permanent/PermanentCommitsInfoImpl.kt @@ -73,7 +73,7 @@ class PermanentCommitsInfoImpl private constructor(val timestamp @JvmStatic fun newInstance(graphCommits: List>, notLoadedCommits: Int2ObjectMap): PermanentCommitsInfoImpl { - val isIntegerCase = !graphCommits.isEmpty() && graphCommits[0].id.javaClass == Int::class.java + val isIntegerCase = !graphCommits.isEmpty() && graphCommits[0].id is Int val commitIdIndex = if (isIntegerCase) createCompressedIntList(graphCommits as List>) as List else graphCommits.map { it.id }