[JVM] Simplify equals method in StrictBasicValue

This commit is contained in:
Ivan Kylchik
2023-08-23 19:48:05 +02:00
committed by Space Team
parent 84a47a2298
commit 05b364a5f1
@@ -56,12 +56,9 @@ open class StrictBasicValue(type: Type?) : BasicValue(type) {
other as StrictBasicValue
if (this === NULL_VALUE) return other === NULL_VALUE
if (other === NULL_VALUE) return this === NULL_VALUE
if (this === NULL_VALUE || other === NULL_VALUE) return false
if (type != other.type) return false
return true
return type == other.type
}
override fun hashCode() = (type?.hashCode() ?: 0)