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

Clean up the deprecated API usage related to `SetOps`

    XMLWordPrintableJSON

Details

    Description

      • method - in trait SetOps is deprecated (since 2.13.0)
      • method – in trait SetOps is deprecated (since 2.13.0)
      • method + in trait SetOps is deprecated (since 2.13.0)
      • method retain in trait SetOps is deprecated (since 2.13.0)

       

      [warn] /Users/yangjie01/SourceCode/git/spark-mine-sbt/core/src/main/scala/org/apache/spark/storage/BlockReplicationPolicy.scala:70:32: method + in trait SetOps is deprecated (since 2.13.0): Consider requiring an immutable Set or fall back to Set.union
      [warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.storage.BlockReplicationUtils.getSampleIds.indices.$anonfun, origin=scala.collection.SetOps.+, version=2.13.0
      [warn]       if (set.contains(t)) set + i else set + t
      [warn]                                ^ 

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: