Take advantage of short-circuit to avoid lazy init if possible
This commit is contained in:
parent
985882f6c3
commit
acbcd9ef54
2 changed files with 4 additions and 6 deletions
|
|
@ -30,8 +30,6 @@ final class MessageInvocation(val receiver: ActorRef,
|
|||
"Don't call 'self ! message' in the Actor's constructor (e.g. body of the class).")
|
||||
}
|
||||
|
||||
def send = receiver.dispatcher.dispatch(this)
|
||||
|
||||
override def hashCode(): Int = synchronized {
|
||||
var result = HashCode.SEED
|
||||
result = HashCode.hash(result, receiver.actor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue