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

Fix `method tryCompleteWith in trait Promise is deprecated`

    XMLWordPrintableJSON

Details

    Description

      [warn] /Users/yangjie01/SourceCode/git/spark-mine-sbt/core/src/main/scala/org/apache/spark/FutureAction.scala:190:32: method tryCompleteWith in trait Promise is deprecated (since 2.13.0): Since this method is semantically equivalent to `completeWith`, use that instead.
      [warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.ComplexFutureAction.p, origin=scala.concurrent.Promise.tryCompleteWith, version=2.13.0
      [warn]   private val p = Promise[T]().tryCompleteWith(run(jobSubmitter))
      [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: