We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2915a5e commit cf5c6ceCopy full SHA for cf5c6ce
core/src/main/scala/org/apache/spark/scheduler/LiveListenerBus.scala
@@ -169,12 +169,8 @@ private[spark] class LiveListenerBus(conf: SparkConf) {
169
}
170
171
172
- private[spark] def findListenersByClass[T <: SparkListenerInterface : ClassTag]():
173
- Seq[T] = {
174
- val c = implicitly[ClassTag[T]].runtimeClass
175
- queues.asScala.flatMap { queue =>
176
- queue.listeners.asScala.filter(_.getClass() == c).map(_.asInstanceOf[T])
177
- }
+ private[spark] def findListenersByClass[T <: SparkListenerInterface : ClassTag](): Seq[T] = {
+ queues.asScala.flatMap { queue => queue.findListenersByClass[T]() }
178
179
180
private[spark] def listeners: JList[SparkListenerInterface] = {
0 commit comments