LuciferYang commented on code in PR #37345:
URL: https://github.com/apache/spark/pull/37345#discussion_r933876991
##########
core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala:
##########
@@ -23,7 +23,6 @@ import java.text.DateFormat
import java.util.{Arrays, Date, Locale}
import scala.collection.JavaConverters._
-import scala.collection.immutable.Map
Review Comment:
I'm not sure if I don't understand what you mean, but `scala.Map[K, +V]`
represents `immutable.Map[K, V]` in both Scala 2.12 and Scala 2.13 (From the
[migration
document](https://docs.scala-lang.org/overviews/core/collections-migration-213.html),
only `scala.Seq[+A]` changed from `scala.collection.Seq[A]` to
`scala.collection.immutable.Seq[A]`, `scala.Map[K, +V]` and `scala.Set[A]`
didn't.)
In addition, where `scala.collection.Map` needs to be used in spark code, we
now explicitly imports it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]