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
This commit is contained in:
Michael Koch 2004-02-20 17:19:03 +00:00 committed by Michael Koch
parent bad9373568
commit 821b56cbd6
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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> 2004-02-20 Michael Koch <konqueror@gmx.de>
* gnu/gcj/convert/Convert.java * gnu/gcj/convert/Convert.java

View File

@ -86,8 +86,7 @@ public class Handler extends URLStreamHandler
// doing anything. // doing anything.
String file = url.getFile(); String file = url.getFile();
if (file != null if (!file.equals(""))
&& file != "")
{ //has context url { //has context url
url_string = url_string.substring (start, end); url_string = url_string.substring (start, end);
if (url_string.startsWith("/")) if (url_string.startsWith("/"))