Simplify the definition of ActorRef#narrow (#27080)
This commit is contained in:
parent
d50674ab49
commit
de9643efa0
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ private[akka] trait ActorRefImpl[-T] extends ActorRef[T] { this: InternalRecipie
|
||||||
def sendSystem(signal: SystemMessage): Unit
|
def sendSystem(signal: SystemMessage): Unit
|
||||||
def isLocal: Boolean
|
def isLocal: Boolean
|
||||||
|
|
||||||
final override def narrow[U <: T]: ActorRef[U] = this.asInstanceOf[ActorRef[U]]
|
final override def narrow[U <: T]: ActorRef[U] = this
|
||||||
|
|
||||||
final override def unsafeUpcast[U >: T @uncheckedVariance]: ActorRef[U] = this.asInstanceOf[ActorRef[U]]
|
final override def unsafeUpcast[U >: T @uncheckedVariance]: ActorRef[U] = this.asInstanceOf[ActorRef[U]]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue