HeartSaVioR commented on a change in pull request #31569:
URL: https://github.com/apache/spark/pull/31569#discussion_r578236960
##########
File path:
core/src/test/scala/org/apache/spark/metrics/sink/PrometheusServletSuite.scala
##########
@@ -63,7 +63,7 @@ class PrometheusServletSuite extends SparkFunSuite with
PrivateMethodTester {
val key = "local-1592132938718.driver.LiveListenerBus." +
"listenerProcessingTime.org.apache.spark.HeartbeatReceiver"
val sink = createPrometheusServlet()
- val suffix = sink invokePrivate PrivateMethod[String]('normalizeKey)(key)
+ val suffix = sink invokePrivate
PrivateMethod[String](Symbol("normalizeKey"))(key)
Review comment:
Quoting the sentence in the doc:
> Although scala.Symbol is useful for migration, beware that it is
deprecated and that it will be removed from the scala-library. You are
recommended, as a second step, to replace them with plain string literals "xwy"
or a dedicated class.
unless the sentence is incorrect I would consider it as targeted as future
removal.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]