We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bfd973 commit f5c4783Copy full SHA for f5c4783
1 file changed
core/src/main/scala/org/apache/spark/util/MutablePair.scala
@@ -33,7 +33,7 @@ case class MutablePair[@specialized(Int, Long, Double, Char, Boolean/*, AnyRef*/
33
def this() = this(null.asInstanceOf[T1], null.asInstanceOf[T2])
34
35
/** Updates this pair with new values and returns itself */
36
- def apply(n1: T1, n2: T2): MutablePair[T1, T2] = {
+ def update(n1: T1, n2: T2): MutablePair[T1, T2] = {
37
_1 = n1
38
_2 = n2
39
this
0 commit comments