From dc2deea04c15b7da2d4eca34f90ac72e0b70a11d Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Fri, 25 Aug 2023 11:51:35 +0200 Subject: [PATCH] JVM: remove unnecessary check in StrictBasicValue.equals Types are already checked for equality several lines below. --- .../kotlin/codegen/optimization/common/StrictBasicValue.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/StrictBasicValue.kt b/compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/StrictBasicValue.kt index b5196238497..23b8fe166e7 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/StrictBasicValue.kt +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/StrictBasicValue.kt @@ -53,7 +53,6 @@ open class StrictBasicValue(type: Type?) : BasicValue(type) { override fun equals(other: Any?): Boolean { if (this === other) return true if (other == null || other::class.java != this::class.java) return false - if (!super.equals(other)) return false other as StrictBasicValue