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.
This commit is contained in:
Reynold Xin 2015-02-03 10:34:16 -08:00
parent bebf4c42be
commit f7948f3f57

View file

@ -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
/**