Commit 821b56cb by Michael Koch Committed by Michael Koch

Handler.java (): Removed unneeded check for file != null.

2004-02-20  Michael Koch  <konqueror@gmx.de>

	* gnu/java/net/protocol/jar/Handler.java
	(): Removed unneeded check for file != null. java.net.URL.getFile()
	returns an empty string but never null.

From-SVN: r78176
parent bad93735
2004-02-20 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/jar/Handler.java
(): Removed unneeded check for file != null. java.net.URL.getFile()
returns an empty string but never null.
2004-02-20 Michael Koch <konqueror@gmx.de>
* gnu/gcj/convert/Convert.java
(main): Use equals() to compare strings.
......
......@@ -86,8 +86,7 @@ public class Handler extends URLStreamHandler
// doing anything.
String file = url.getFile();
if (file != null
&& file != "")
if (!file.equals(""))
{ //has context url
url_string = url_string.substring (start, end);
if (url_string.startsWith("/"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment