Minor renames of parameters of non-user API an some code cleanup

This commit is contained in:
Viktor Klang 2011-06-06 19:42:52 -07:00
parent 39ca090110
commit 4c8360e8d7
3 changed files with 10 additions and 17 deletions

View file

@ -22,13 +22,8 @@ final case class MessageInvocation(receiver: ActorRef,
senderFuture: Option[Promise[Any]]) {
if (receiver eq null) throw new IllegalArgumentException("Receiver can't be null")
def invoke() {
try {
receiver.invoke(this)
} catch {
case e: NullPointerException throw new ActorInitializationException(
"Don't call 'self ! message' in the Actor's constructor (in Scala this means in the body of the class).")
}
final def invoke() {
receiver invoke this
}
}
@ -177,7 +172,7 @@ trait MessageDispatcher {
val uuid = i.next()
Actor.registry.local.actorFor(uuid) match {
case Some(actor) actor.stop()
case None {}
case None
}
}
}