Skip to content

Commit 5d0f58b

Browse files
marmbrusmateiz
authored andcommitted
Use scala deprecation instead of java.
This gets rid of a warning when compiling core (since we were depending on a deprecated interface with a non-deprecated function). I also tested with javac, and this does the right thing when compiling java code. Author: Michael Armbrust <[email protected]> Closes apache#452 from marmbrus/scalaDeprecation and squashes the following commits: f628b4d [Michael Armbrust] Use scala deprecation instead of java.
1 parent 28238c8 commit 5d0f58b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class JavaSparkContext(val sc: SparkContext) extends JavaSparkContextVarargsWork
114114
* @deprecated As of Spark 1.0.0, defaultMinSplits is deprecated, use
115115
* {@link #defaultMinPartitions()} instead
116116
*/
117-
@Deprecated
117+
@deprecated("use defaultMinPartitions", "1.0.0")
118118
def defaultMinSplits: java.lang.Integer = sc.defaultMinSplits
119119

120120
/** Default min number of partitions for Hadoop RDDs when not given by user */

0 commit comments

Comments
 (0)