diff --git a/core/src/main/scala/org/apache/spark/serializer/KryoSerializer.scala b/core/src/main/scala/org/apache/spark/serializer/KryoSerializer.scala index 2ca30cf4cd628..ec5d53e91b3e0 100644 --- a/core/src/main/scala/org/apache/spark/serializer/KryoSerializer.scala +++ b/core/src/main/scala/org/apache/spark/serializer/KryoSerializer.scala @@ -227,10 +227,7 @@ class KryoSerializer(conf: SparkConf) // scalastyle:on - kryo.register(None.getClass) - kryo.register(Nil.getClass) kryo.register(Utils.classForName("scala.collection.immutable.ArraySeq$ofRef")) - kryo.register(Utils.classForName("scala.collection.immutable.$colon$colon")) kryo.register(Utils.classForName("scala.collection.immutable.Map$EmptyMap$")) kryo.register(Utils.classForName("scala.math.Ordering$Reverse")) kryo.register(Utils.classForName("scala.reflect.ClassTag$GenericClassTag"))