Merge pull request #22089 from VEINHORN/master
Remove redundant new modifier
This commit is contained in:
commit
956676d0bc
2 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue