Minor. Add hashCode override after existing equals
This commit is contained in:
+3
@@ -42,4 +42,7 @@ private fun makeNotNullIfNeeded(insn: AbstractInsnNode, value: BasicValue?): Bas
|
|||||||
|
|
||||||
class NotNullBasicValue(wrappedValue: BasicValue?) : BasicValueWrapper(wrappedValue) {
|
class NotNullBasicValue(wrappedValue: BasicValue?) : BasicValueWrapper(wrappedValue) {
|
||||||
override fun equals(other: Any?): Boolean = other is NotNullBasicValue
|
override fun equals(other: Any?): Boolean = other is NotNullBasicValue
|
||||||
|
// We do not differ not-nullable values, so we should always return the same hashCode
|
||||||
|
// Actually it doesn't really matter because analyzer is not supposed to store values in hashtables
|
||||||
|
override fun hashCode() = 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user