mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[stats-collector] EA-215204 assert: LookupEntryInfo.calculateDiff (do not rely on that lookup string value is stable)
GitOrigin-RevId: 4fa2ac4d166868f661c541e8c1a1ef4df2b4f7cb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bd44e6849b
commit
7dfc47bfba
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user