viirya commented on a change in pull request #24431: 
[SPARK-27536][CORE][ML][SQL][STREAMING] Remove most use of 
scala.language.existentials
URL: https://github.com/apache/spark/pull/24431#discussion_r279141550
 
 

 ##########
 File path: core/src/test/scala/org/apache/spark/FileSuite.scala
 ##########
 @@ -206,8 +206,9 @@ class FileSuite extends SparkFunSuite with 
LocalSparkContext {
 
     Utils.withContextClassLoader(loader) {
       sc = new SparkContext("local", "test")
-      val objs = sc.makeRDD(1 to 3).map { x =>
-        Utils.classForName(className, noSparkClassLoader = 
true).getConstructor().newInstance()
+        val objs = sc.makeRDD(1 to 3).map { _ =>
+        Utils.classForName[AnyRef](className, noSparkClassLoader = true).
 
 Review comment:
   The indent looks incorrect here.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to