Skip to content

Commit ee17b4e

Browse files
committed
add message and since
1 parent 2ff7319 commit ee17b4e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/main/scala/org/apache/spark/rdd/RDD.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ abstract class RDD[T: ClassTag](
666666
/**
667667
* Return an array that contains all of the elements in this RDD.
668668
*/
669-
@deprecated
669+
@deprecated("use collect", "1.0.0")
670670
def toArray(): Array[T] = collect()
671671

672672
/**

core/src/main/scala/org/apache/spark/rdd/SampledRDD.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ import cern.jet.random.engine.DRand
2626

2727
import org.apache.spark.{Partition, TaskContext}
2828

29-
@deprecated("Replaced by PartitionwiseSampledRDDPartition", "1.0")
29+
@deprecated("Replaced by PartitionwiseSampledRDDPartition", "1.0.0")
3030
private[spark]
3131
class SampledRDDPartition(val prev: Partition, val seed: Int) extends Partition with Serializable {
3232
override val index: Int = prev.index
3333
}
3434

35-
@deprecated("Replaced by PartitionwiseSampledRDD", "1.0")
35+
@deprecated("Replaced by PartitionwiseSampledRDD", "1.0.0")
3636
class SampledRDD[T: ClassTag](
3737
prev: RDD[T],
3838
withReplacement: Boolean,

0 commit comments

Comments
 (0)