File.java (normalizePath): Use equals() not '==' for string comparison.
* java/io/File.java (normalizePath): Use equals() not '==' for string comparison. From-SVN: r45583
This commit is contained in:
parent
bdcbe49686
commit
7364d5f851
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
|
||||
|
||||
* java/io/File.java (normalizePath): Use equals() not '==' for string
|
||||
comparison.
|
||||
|
||||
2001-09-12 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* Makefile.in: Rebuilt.
|
||||
|
|
|
@ -86,7 +86,7 @@ public class File implements Serializable, Comparable
|
|||
int plen = p.length();
|
||||
|
||||
// Special case: permit Windows UNC path prefix.
|
||||
if (dupSeparator == "\\" && dupIndex == 0)
|
||||
if (dupSeparator.equals("\\") && dupIndex == 0)
|
||||
dupIndex = p.indexOf(dupSeparator, 1);
|
||||
|
||||
if (dupIndex == -1)
|
||||
|
|
Loading…
Add table
Reference in a new issue