Skip to content

Commit 6bd2eaa

Browse files
CodingCataarondav
authored andcommitted
hot fix for PR105 - change to Java annotation
Author: CodingCat <zhunansjtu@gmail.com> Closes #133 from CodingCat/SPARK-1160-2 and squashes the following commits: 6607155 [CodingCat] hot fix for PR105 - change to Java annotation
1 parent 31a7040 commit 6bd2eaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/scala/org/apache/spark/api/java/JavaRDDLike.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,9 @@ trait JavaRDDLike[T, This <: JavaRDDLike[T, This]] extends Serializable {
282282

283283
/**
284284
* Return an array that contains all of the elements in this RDD.
285+
* @deprecated As of Spark 1.0.0, toArray() is deprecated, use {@link #collect()} instead
285286
*/
286-
@deprecated("use collect", "1.0.0")
287+
@Deprecated
287288
def toArray(): JList[T] = collect()
288289

289290
/**

0 commit comments

Comments
 (0)