hvanhovell commented on code in PR #41109:
URL: https://github.com/apache/spark/pull/41109#discussion_r1189275908
##########
core/src/main/scala/org/apache/spark/util/Utils.scala:
##########
@@ -197,7 +197,7 @@ private[spark] object Utils extends Logging {
/**
* Get the ClassLoader which loaded Spark.
*/
- def getSparkClassLoader: ClassLoader = getClass.getClassLoader
+ def getSparkClassLoader: ClassLoader = SparkClassUtils.getSparkClassLoader
Review Comment:
You implement `SparkClassUtils` as a trait, and make `Utils` implement that
trait. That will save you from writing a lot of code like this.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]