Lightweight hashCode calc for LibraryInfo

#EA-6040509 Fixed
This commit is contained in:
Vladimir Dolzhenko
2021-02-13 21:25:46 +01:00
parent 6882cf820e
commit bf9fa4c9da
@@ -401,7 +401,11 @@ abstract class LibraryInfo(override val project: Project, val library: Library)
return (other is LibraryInfo && library == other.library)
}
override fun hashCode(): Int = 43 * library.hashCode()
private val lazyHashCode: Int by lazy {
43 * library.hashCode()
}
override fun hashCode(): Int = lazyHashCode
}
data class LibrarySourceInfo(override val project: Project, val library: Library, override val binariesModuleInfo: BinaryModuleInfo) :