Take advantage of short-circuit to avoid lazy init if possible

This commit is contained in:
Viktor Klang 2010-09-12 18:59:21 +02:00
parent 985882f6c3
commit acbcd9ef54
2 changed files with 4 additions and 6 deletions

View file

@ -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)