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

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

View file

@ -115,7 +115,6 @@ object RemoteServer {
result
}
override def equals(that: Any): Boolean = {
that != null &&
that.isInstanceOf[Address] &&
that.asInstanceOf[Address].hostname == hostname &&
that.asInstanceOf[Address].port == port