removed redundant new modifier

This commit is contained in:
VEINHORN 2017-01-03 11:53:45 +03:00
parent 7646506af0
commit 29612565eb
2 changed files with 2 additions and 2 deletions

View file

@ -592,7 +592,7 @@ trait Actor {
*/
def unhandled(message: Any): Unit = {
message match {
case Terminated(dead) throw new DeathPactException(dead)
case Terminated(dead) throw DeathPactException(dead)
case _ context.system.eventStream.publish(UnhandledMessage(message, sender(), self))
}
}

View file

@ -39,7 +39,7 @@ private[typed] class ActorAdapter[T](_initialBehavior: Behavior[T]) extends a.Ac
}
override def unhandled(msg: Any): Unit = msg match {
case Terminated(ref) throw new a.DeathPactException(toUntyped(ref))
case Terminated(ref) throw a.DeathPactException(toUntyped(ref))
case other super.unhandled(other)
}