Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-721

Fix remaining deprecation warnings

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.7.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      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:

      [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
      

      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:

      [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
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joshrosen Josh Rosen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: