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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue