Skip to content

Commit

Permalink
Minor cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Vanzin committed Sep 13, 2017
1 parent 2915a5e commit cf5c6ce
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,8 @@ private[spark] class LiveListenerBus(conf: SparkConf) {
}
}

private[spark] def findListenersByClass[T <: SparkListenerInterface : ClassTag]():
Seq[T] = {
val c = implicitly[ClassTag[T]].runtimeClass
queues.asScala.flatMap { queue =>
queue.listeners.asScala.filter(_.getClass() == c).map(_.asInstanceOf[T])
}
private[spark] def findListenersByClass[T <: SparkListenerInterface : ClassTag](): Seq[T] = {
queues.asScala.flatMap { queue => queue.findListenersByClass[T]() }
}

private[spark] def listeners: JList[SparkListenerInterface] = {
Expand Down

0 comments on commit cf5c6ce

Please sign in to comment.