Data flow values: variable-based are no more compared with taking kind into account

This commit is contained in:
Mikhail Glukhikh
2016-07-25 11:40:51 +03:00
parent f96b9ddbf5
commit 7090abddcd
@@ -41,10 +41,9 @@ interface IdentifierInfo {
class Variable(val variable: VariableDescriptor, override val kind: DataFlowValue.Kind) : IdentifierInfo {
override fun equals(other: Any?) =
other is Variable && variable == other.variable && kind.isStable() == other.kind.isStable()
override fun equals(other: Any?) = other is Variable && variable == other.variable
override fun hashCode() = variable.hashCode() + 31 * (if (kind.isStable()) 1 else 0)
override fun hashCode() = variable.hashCode()
override fun toString() = variable.toString()
}