[LL] Add proper equals and hashCode for KtModuleBasedModuleData
This commit is contained in:
committed by
teamcity
parent
851305f981
commit
2fa6425965
+15
@@ -31,4 +31,19 @@ internal class KtModuleBasedModuleData(
|
||||
override val platform: TargetPlatform get() = module.platform
|
||||
|
||||
override val analyzerServices: PlatformDependentAnalyzerServices get() = module.analyzerServices
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
if (this === other) return true
|
||||
if (javaClass != other?.javaClass) return false
|
||||
|
||||
other as KtModuleBasedModuleData
|
||||
|
||||
if (module != other.module) return false
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return module.hashCode()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user