Replacing use of == null and != null for Scala
This commit is contained in:
parent
8bedc2b326
commit
b0e99413b7
25 changed files with 59 additions and 63 deletions
|
|
@ -337,7 +337,7 @@ object TypedActorSerialization {
|
|||
proxy: AnyRef, format: Format[T]): SerializedTypedActorRefProtocol = {
|
||||
|
||||
val init = AspectInitRegistry.initFor(proxy)
|
||||
if (init == null) throw new IllegalArgumentException("Proxy for typed actor could not be found in AspectInitRegistry.")
|
||||
if (init eq null) throw new IllegalArgumentException("Proxy for typed actor could not be found in AspectInitRegistry.")
|
||||
|
||||
SerializedTypedActorRefProtocol.newBuilder
|
||||
.setActorRef(ActorSerialization.toSerializedActorRefProtocol(init.actorRef, format))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue