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 e9f6449 commit a888975Copy full SHA for a888975
kotlinx-coroutines-core/src/test/kotlin/kotlinx/coroutines/experimental/internal/ThreadSafeHeapTest.kt
@@ -25,7 +25,7 @@ import java.util.*
25
class ThreadSafeHeapTest {
26
class Node(val value: Int) : ThreadSafeHeapNode, Comparable<Node> {
27
override var index = -1
28
- override fun compareTo(other: Node): Int = Integer.compare(value, other.value)
+ override fun compareTo(other: Node): Int = value.compareTo(other.value)
29
override fun equals(other: Any?): Boolean = other is Node && other.value == value
30
override fun hashCode(): Int = value
31
override fun toString(): String = "$value"
0 commit comments