You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2015/02/03 19:34:20 UTC
spark git commit: Minor: Fix TaskContext deprecated annotations.
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 <rx...@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 <rx...@databricks.com>
Authored: Tue Feb 3 10:34:16 2015 -0800
Committer: Reynold Xin <rx...@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org