From 099bd2bc84b2eaf0894881e05b4002809eaf1a77 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Tue, 12 Mar 2024 14:26:21 +0100 Subject: [PATCH] [vcs-log-graph] correctly detect if commit ids are integers follow-up: 5692f109943bd905a5542e564e2081782c880704 GitOrigin-RevId: 1578f916beef59b28d3599076f94b5eac6f7f9b3 --- .../vcs/log/graph/impl/permanent/PermanentCommitsInfoImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }