Merge pull request #22089 from VEINHORN/master

Remove redundant new modifier
This commit is contained in:
Patrik Nordwall 2017-01-12 15:34:59 +01:00 committed by GitHub
commit 956676d0bc
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)
}