Skip to content

Commit

Permalink
Use scala deprecation instead of java.
Browse files Browse the repository at this point in the history
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 #452 from marmbrus/scalaDeprecation and squashes the following commits:

f628b4d [Michael Armbrust] Use scala deprecation instead of java.

(cherry picked from commit 5d0f58b)
Signed-off-by: Matei Zaharia <[email protected]>
  • Loading branch information
marmbrus authored and mateiz committed Apr 19, 2014
1 parent 2fe6b18 commit bfb09c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class JavaSparkContext(val sc: SparkContext) extends JavaSparkContextVarargsWork
* @deprecated As of Spark 1.0.0, defaultMinSplits is deprecated, use
* {@link #defaultMinPartitions()} instead
*/
@Deprecated
@deprecated("use defaultMinPartitions", "1.0.0")
def defaultMinSplits: java.lang.Integer = sc.defaultMinSplits

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

0 comments on commit bfb09c6

Please sign in to comment.