We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9970709 commit 92ac22cCopy full SHA for 92ac22c
ui/kotlinx-coroutines-android/src/HandlerDispatcher.kt
@@ -171,7 +171,8 @@ internal class HandlerContext private constructor(
171
172
override fun equals(other: Any?): Boolean =
173
other is HandlerContext && other.handler === handler && other.invokeImmediately == invokeImmediately
174
- override fun hashCode(): Int = System.identityHashCode(handler) xor invokeImmediately.hashCode()
+ // inlining `Boolean.hashCode()` for Android compatibility, as requested by Animal Sniffer
175
+ override fun hashCode(): Int = System.identityHashCode(handler) xor if (invokeImmediately) 1231 else 1237
176
}
177
178
@Volatile
0 commit comments