We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07a7a41 commit f85a6fbCopy full SHA for f85a6fb
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