Switching to the faster append and removed a relative import
This commit is contained in:
parent
ef399e283d
commit
a4bd12ed22
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ import akka.util.Index
|
||||||
import java.util.concurrent.ConcurrentSkipListSet
|
import java.util.concurrent.ConcurrentSkipListSet
|
||||||
import java.util.Comparator
|
import java.util.Comparator
|
||||||
import akka.util.{ Subclassification, SubclassifiedIndex }
|
import akka.util.{ Subclassification, SubclassifiedIndex }
|
||||||
import collection.immutable.TreeSet
|
import scala.collection.immutable.TreeSet
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the base type for EventBuses
|
* Represents the base type for EventBuses
|
||||||
|
|
@ -247,7 +247,7 @@ trait ActorClassification { this: ActorEventBus with ActorClassifier ⇒
|
||||||
case null ⇒
|
case null ⇒
|
||||||
if (monitored.isTerminated) false
|
if (monitored.isTerminated) false
|
||||||
else {
|
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
|
else if (monitored.isTerminated) !dissociate(monitored, monitor) else true
|
||||||
}
|
}
|
||||||
case raw: TreeSet[_] ⇒
|
case raw: TreeSet[_] ⇒
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue