Skip to content

Commit a888975

Browse files
committed
Fixed ThreadSafeHeapTest for JDK 1.6
1 parent e9f6449 commit a888975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/src/test/kotlin/kotlinx/coroutines/experimental/internal/ThreadSafeHeapTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import java.util.*
2525
class ThreadSafeHeapTest {
2626
class Node(val value: Int) : ThreadSafeHeapNode, Comparable<Node> {
2727
override var index = -1
28-
override fun compareTo(other: Node): Int = Integer.compare(value, other.value)
28+
override fun compareTo(other: Node): Int = value.compareTo(other.value)
2929
override fun equals(other: Any?): Boolean = other is Node && other.value == value
3030
override fun hashCode(): Int = value
3131
override fun toString(): String = "$value"

0 commit comments

Comments
 (0)