Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19307#discussion_r140211059
  
    --- Diff: 
core/src/main/scala/org/apache/spark/serializer/KryoSerializer.scala ---
    @@ -501,8 +501,8 @@ private class JavaIterableWrapperSerializer
     private object JavaIterableWrapperSerializer extends Logging {
       // The class returned by JavaConverters.asJava
       // (scala.collection.convert.Wrappers$IterableWrapper).
    -  val wrapperClass =
    -    scala.collection.convert.WrapAsJava.asJavaIterable(Seq(1)).getClass
    +  import scala.collection.JavaConverters._
    +  val wrapperClass = Seq(1).asJava.getClass
    --- End diff --
    
    WrapAsJava is deprecated and this ought to be the equivalent to obtain a 
Java Iterable wrapper


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to