Repository: spark
Updated Branches:
  refs/heads/master bebf4c42b -> f7948f3f5


Minor: Fix TaskContext deprecated annotations.

Made a mistake in https://github.com/apache/spark/pull/4324

Author: Reynold Xin <r...@databricks.com>

Closes #4333 from rxin/taskcontext-deprecate and squashes the following commits:

61c44ee [Reynold Xin] Minor: Fix TaskContext deprecated annotations.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/f7948f3f
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/f7948f3f
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/f7948f3f

Branch: refs/heads/master
Commit: f7948f3f5718b7c4a2d35634815670c4cbbe70fd
Parents: bebf4c4
Author: Reynold Xin <r...@databricks.com>
Authored: Tue Feb 3 10:34:16 2015 -0800
Committer: Reynold Xin <r...@databricks.com>
Committed: Tue Feb 3 10:34:16 2015 -0800

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/TaskContext.scala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/f7948f3f/core/src/main/scala/org/apache/spark/TaskContext.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/TaskContext.scala 
b/core/src/main/scala/org/apache/spark/TaskContext.scala
index af9c138..7d7fe1a 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
 
   /**


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to