From 7dfc47bfba1785b034d3ea0978073e358393a5ba Mon Sep 17 00:00:00 2001 From: "Vitaliy.Bibaev" Date: Thu, 24 Oct 2019 07:36:41 +0300 Subject: [PATCH] [stats-collector] EA-215204 assert: LookupEntryInfo.calculateDiff (do not rely on that lookup string value is stable) GitOrigin-RevId: 4fa2ac4d166868f661c541e8c1a1ef4df2b4f7cb --- .../src/com/intellij/stats/completion/LookupEntryInfo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/stats-collector/log-events/src/com/intellij/stats/completion/LookupEntryInfo.kt b/plugins/stats-collector/log-events/src/com/intellij/stats/completion/LookupEntryInfo.kt index 9aae3f006dc3..a837780afe89 100644 --- a/plugins/stats-collector/log-events/src/com/intellij/stats/completion/LookupEntryInfo.kt +++ b/plugins/stats-collector/log-events/src/com/intellij/stats/completion/LookupEntryInfo.kt @@ -21,7 +21,7 @@ class LookupEntryInfo(val id: Int, val length: Int, val hash: Int, val relevance // returns null if no difference found fun calculateDiff(newValue: LookupEntryInfo): LookupEntryDiff? { assert(id == newValue.id) { "Could not compare infos for different lookup elements" } - assert(hash == newValue.hash) { "Hashes of elements with the same ids should be the same" } + //assert(hash == newValue.hash) { "Hashes of elements with the same ids should be the same" } // lookupString is not actually stable if (this === newValue) return null if (relevance == null && newValue.relevance == null) { return null