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
|
@ -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
Add a link
Reference in a new issue