You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2014/06/21 23:02:25 UTC
[jira] [Commented] (SPARK-721) Fix remaining deprecation warnings
[ https://issues.apache.org/jira/browse/SPARK-721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14039951#comment-14039951 ]
Sean Owen commented on SPARK-721:
---------------------------------
This appears to be resolved as I don't think these warnings have been in the build for a while.
> Fix remaining deprecation warnings
> ----------------------------------
>
> Key: SPARK-721
> URL: https://issues.apache.org/jira/browse/SPARK-721
> Project: Spark
> Issue Type: Improvement
> Affects Versions: 0.7.1
> Reporter: Josh Rosen
> Assignee: Gary Struthers
> Priority: Minor
> Labels: Starter
>
> The recent patch to re-enable deprecation warnings fixed many of them, but there's still a few left; it would be nice to fix them.
> For example, here's one in RDDSuite:
> {code}
> [warn] /Users/joshrosen/Documents/spark/spark/core/src/test/scala/spark/RDDSuite.scala:32: method mapPartitionsWithSplit in class RDD is deprecated: use mapPartitionsWithIndex
> [warn] val partitionSumsWithSplit = nums.mapPartitionsWithSplit {
> [warn] ^
> [warn] one warning found
> {code}
> Also, it looks like Scala 2.9 added a second "deprecatedSince" parameter to @Deprecated. We didn't fill this in, which causes some additional warnings:
> {code}
> [warn] /Users/joshrosen/Documents/spark/spark/core/src/main/scala/spark/RDD.scala:370: @deprecated now takes two arguments; see the scaladoc.
> [warn] @deprecated("use mapPartitionsWithIndex")
> [warn] ^
> [warn] one warning found
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)