[light classes] KtUltraLightParameterForSetterParameter: simplify equals

^KTIJ-21151
This commit is contained in:
Dmitry Gridin
2022-02-18 17:38:25 +07:00
parent 30b7c4689b
commit dc210fa6ef
@@ -231,8 +231,7 @@ internal class KtUltraLightParameterForSetterParameter(
override fun equals(other: Any?): Boolean = other === this ||
other is KtUltraLightParameterForSetterParameter &&
other.name == this.name &&
other.property == this.property &&
other.containingDeclaration == this.containingDeclaration
other.property == this.property
override fun hashCode(): Int = name.hashCode()
}