diff options
author | Reynold Xin <rxin@databricks.com> | 2015-02-03 10:34:16 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-02-03 10:34:16 -0800 |
commit | f7948f3f5718b7c4a2d35634815670c4cbbe70fd (patch) | |
tree | 359c69fd3c4b723ed95a464706de2064ac464ae5 | |
parent | bebf4c42bef3e75d31ffce9bfdb331c16f34ddb1 (diff) | |
download | spark-f7948f3f5718b7c4a2d35634815670c4cbbe70fd.tar.gz spark-f7948f3f5718b7c4a2d35634815670c4cbbe70fd.tar.bz2 spark-f7948f3f5718b7c4a2d35634815670c4cbbe70fd.zip |
Minor: Fix TaskContext deprecated annotations.
Made a mistake in https://github.com/apache/spark/pull/4324
Author: Reynold Xin <rxin@databricks.com>
Closes #4333 from rxin/taskcontext-deprecate and squashes the following commits:
61c44ee [Reynold Xin] Minor: Fix TaskContext deprecated annotations.
-rw-r--r-- | core/src/main/scala/org/apache/spark/TaskContext.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/main/scala/org/apache/spark/TaskContext.scala b/core/src/main/scala/org/apache/spark/TaskContext.scala index af9c138f97..7d7fe1a446 100644 --- a/core/src/main/scala/org/apache/spark/TaskContext.scala +++ b/core/src/main/scala/org/apache/spark/TaskContext.scala @@ -72,7 +72,7 @@ abstract class TaskContext extends Serializable { */ def isInterrupted(): Boolean - @deprecated("1.2.0", "use isRunningLocally") + @deprecated("use isRunningLocally", "1.2.0") def runningLocally(): Boolean /** @@ -102,7 +102,7 @@ abstract class TaskContext extends Serializable { * * @param f Callback function. */ - @deprecated("1.2.0", "use addTaskCompletionListener") + @deprecated("use addTaskCompletionListener", "1.2.0") def addOnCompleteCallback(f: () => Unit) /** @@ -121,7 +121,7 @@ abstract class TaskContext extends Serializable { */ def attemptNumber(): Int - @deprecated("1.3.0", "use attemptNumber") + @deprecated("use attemptNumber", "1.3.0") def attemptId(): Long /** |