* java/net/InetAddress.java
(equals): Remove redundant obj == null check.
* java/net/SocketPermission.java
(equals): Likewise.
* java/net/URL.java
(equals): Likewise.
(getURLStreamHandler): Likewise.
From-SVN: r73034
+2003-10-29 Michael Koch <konqueror@gmx.de>
+
+ * java/net/InetAddress.java
+ (equals): Remove redundant obj == null check.
+ * java/net/SocketPermission.java
+ (equals): Likewise.
+ * java/net/URL.java
+ (equals): Likewise.
+ (getURLStreamHandler): Likewise.
+
2003-10-29 Michael Koch <konqueror@gmx.de>
* gnu/java/net/natPlainDatagramSocketImplPosix.cc
*/
public boolean equals (Object obj)
{
- if (obj == null
- || ! (obj instanceof InetAddress))
+ if (! (obj instanceof InetAddress))
return false;
// "The Java Class Libraries" 2nd edition says "If a machine has
*/
public boolean equals(Object obj)
{
- if (obj == null)
- return (false);
-
if (!(obj instanceof SocketPermission))
return (false);
*/
public boolean equals (Object obj)
{
- if (obj == null || ! (obj instanceof URL))
+ if (! (obj instanceof URL))
return false;
return ph.equals (this, (URL) obj);
// Can't instantiate; handler still null, go on to next element.
}
}
- while ((ph == null ||
- !(ph instanceof URLStreamHandler))
+ while ((! (ph instanceof URLStreamHandler))
&& pkgPrefix.hasMoreTokens());
}