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:
Bryce McKinlay 2001-09-13 23:18:07 +00:00 committed by Bryce McKinlay
parent bdcbe49686
commit 7364d5f851
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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)