srowen commented on a change in pull request #23419: [SPARK-26507][CORE] Fix 
core tests for Java 11
URL: https://github.com/apache/spark/pull/23419#discussion_r244555371
 
 

 ##########
 File path: 
core/src/test/scala/org/apache/spark/metrics/source/AccumulatorSourceSuite.scala
 ##########
 @@ -37,7 +36,7 @@ class AccumulatorSourceSuite extends SparkFunSuite {
     val accs = Map("my-accumulator-1" -> acc1,
                    "my-accumulator-2" -> acc2)
     LongAccumulatorSource.register(mockContext, accs)
-    val captor = new ArgumentCaptor[AccumulatorSource]()
+    val captor = ArgumentCaptor.forClass(classOf[AccumulatorSource])
 
 Review comment:
   This is actually just cleaning up a deprecation warning along the way; not 
strictly required for Java 11

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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