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.

From-SVN: r73034
This commit is contained in:
Michael Koch 2003-10-29 10:53:19 +00:00 committed by Michael Koch
parent 1d749ee003
commit 9c9081ae91
4 changed files with 13 additions and 8 deletions

View file

@ -451,7 +451,7 @@ public final class URL implements Serializable
*/
public boolean equals (Object obj)
{
if (obj == null || ! (obj instanceof URL))
if (! (obj instanceof URL))
return false;
return ph.equals (this, (URL) obj);
@ -829,8 +829,7 @@ public final class URL implements Serializable
// Can't instantiate; handler still null, go on to next element.
}
}
while ((ph == null ||
!(ph instanceof URLStreamHandler))
while ((! (ph instanceof URLStreamHandler))
&& pkgPrefix.hasMoreTokens());
}