We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f89004 commit 1a82e0cCopy full SHA for 1a82e0c
kotlinx-coroutines-core/jvm/src/Exceptions.kt
@@ -68,9 +68,6 @@ internal actual class JobCancellationException public actual constructor(
68
other === this ||
69
other is JobCancellationException && other.message == message && other.job == job && other.cause == cause
70
71
- override fun hashCode(): Int {
72
- // since job is transient it is indeed nullable after deserialization
73
- @Suppress("UNNECESSARY_SAFE_CALL")
74
- return (message!!.hashCode() * 31 + (job?.hashCode() ?: 0)) * 31 + (cause?.hashCode() ?: 0)
75
- }
+ override fun hashCode(): Int =
+ (message!!.hashCode() * 31 + job.hashCode()) * 31 + (cause?.hashCode() ?: 0)
76
}
0 commit comments