Skip to content

Commit 83acb38

Browse files
committed
Minor changes according to comments
1 parent fa2a08f commit 83acb38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/util/collection/ExternalSorter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private[spark] class ExternalSorter[K, V, C](
152152
override def compare(a: K, b: K): Int = {
153153
val h1 = if (a == null) 0 else a.hashCode()
154154
val h2 = if (b == null) 0 else b.hashCode()
155-
Integer.compare(h1, h2)
155+
if (h1 < h2) -1 else if (h1 == h2) 0 else 1
156156
}
157157
})
158158

0 commit comments

Comments
 (0)