Changing the default sender of ! to be Actor.noSender to keep null in one place and have a logical alternative when deadLetters isn't present in scope.

This commit is contained in:
Viktor Klang 2012-10-06 00:13:42 +02:00
parent 89c1f66b1f
commit 397083a218
11 changed files with 19 additions and 14 deletions

View file

@ -63,7 +63,7 @@ private[akka] class RemoteSystemDaemon(
}
}
override def !(msg: Any)(implicit sender: ActorRef = null): Unit = msg match {
override def !(msg: Any)(implicit sender: ActorRef = Actor.noSender): Unit = msg match {
case message: DaemonMsg
log.debug("Received command [{}] to RemoteSystemDaemon on [{}]", message, path.address)
message match {