Switching to the faster append and removed a relative import

This commit is contained in:
Viktor Klang 2012-03-15 15:45:55 +01:00
parent ef399e283d
commit a4bd12ed22

View file

@ -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[_]