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

Fix remaining deprecation warnings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.7.1
    • None
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: