From a4bd12ed220b200c2f9c707fa399f6b32db27c92 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Thu, 15 Mar 2012 15:45:55 +0100 Subject: [PATCH] Switching to the faster append and removed a relative import --- akka-actor/src/main/scala/akka/event/EventBus.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/akka-actor/src/main/scala/akka/event/EventBus.scala b/akka-actor/src/main/scala/akka/event/EventBus.scala index bf19f5ed06..aee9eb787c 100644 --- a/akka-actor/src/main/scala/akka/event/EventBus.scala +++ b/akka-actor/src/main/scala/akka/event/EventBus.scala @@ -9,7 +9,7 @@ import akka.util.Index import java.util.concurrent.ConcurrentSkipListSet import java.util.Comparator import akka.util.{ Subclassification, SubclassifiedIndex } -import collection.immutable.TreeSet +import scala.collection.immutable.TreeSet /** * Represents the base type for EventBuses @@ -247,7 +247,7 @@ trait ActorClassification { this: ActorEventBus with ActorClassifier ⇒ case null ⇒ if (monitored.isTerminated) false else { - if (mappings.putIfAbsent(monitored, TreeSet(monitor)) ne null) associate(monitored, monitor) + if (mappings.putIfAbsent(monitored, empty + monitor) ne null) associate(monitored, monitor) else if (monitored.isTerminated) !dissociate(monitored, monitor) else true } case raw: TreeSet[_] ⇒