Skip to content

Commit

Permalink
Minor changes according to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryshao committed Sep 24, 2014
1 parent fa2a08f commit 83acb38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private[spark] class ExternalSorter[K, V, C](
override def compare(a: K, b: K): Int = {
val h1 = if (a == null) 0 else a.hashCode()
val h2 = if (b == null) 0 else b.hashCode()
Integer.compare(h1, h2)
if (h1 < h2) -1 else if (h1 == h2) 0 else 1
}
})

Expand Down

0 comments on commit 83acb38

Please sign in to comment.