Replacing use of == null and != null for Scala

This commit is contained in:
Viktor Klang 2010-09-28 11:21:05 +02:00
parent 0cc2e26a91
commit ebf3dd0b52
25 changed files with 59 additions and 63 deletions

View file

@ -39,7 +39,6 @@ final class MessageInvocation(val receiver: ActorRef,
}
override def equals(that: Any): Boolean = {
that != null &&
that.isInstanceOf[MessageInvocation] &&
that.asInstanceOf[MessageInvocation].receiver.actor == receiver.actor &&
that.asInstanceOf[MessageInvocation].message == message