Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-45314 Drop Scala 2.12 and make Scala 2.13 by default
  3. SPARK-45698

Clean up the deprecated API usage related to `Buffer`

    XMLWordPrintableJSON

Details

    Description

      • method append in trait Buffer is deprecated (since 2.13.0)
      • method prepend in trait Buffer is deprecated (since 2.13.0)
      • method trimEnd in trait Buffer is deprecated (since 2.13.4)
      • method trimStart in trait Buffer is deprecated (since 2.13.4)
      [warn] /Users/yangjie01/SourceCode/git/spark-mine-sbt/core/src/test/scala/org/apache/spark/deploy/IvyTestUtils.scala:319:18: method append in trait Buffer is deprecated (since 2.13.0): Use appendAll instead
      [warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.deploy.IvyTestUtils.createLocalRepository, origin=scala.collection.mutable.Buffer.append, version=2.13.0
      [warn]         allFiles.append(rFiles: _*)
      [warn]                  ^ 
      
      [warn] /Users/yangjie01/SourceCode/git/spark-mine-sbt/core/src/main/scala/org/apache/spark/util/SizeEstimator.scala:183:13: method trimEnd in trait Buffer is deprecated (since 2.13.4): use dropRightInPlace instead
      [warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.util.SizeEstimator.SearchState.dequeue, origin=scala.collection.mutable.Buffer.trimEnd, version=2.13.4
      [warn]       stack.trimEnd(1)
      [warn]             ^

      Attachments

        Issue Links

          Activity

            People

              LuciferYang Yang Jie
              LuciferYang Yang Jie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: