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:
parent
bad9373568
commit
821b56cbd6
@ -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
|
||||||
|
@ -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("/"))
|
||||||
|
Loading…
Reference in New Issue
Block a user