Commit 7364d5f8 by Bryce McKinlay Committed by Bryce McKinlay

File.java (normalizePath): Use equals() not '==' for string comparison.

	* java/io/File.java (normalizePath): Use equals() not '==' for string
	comparison.

From-SVN: r45583
parent bdcbe496
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> 2001-09-12 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
......
...@@ -86,7 +86,7 @@ public class File implements Serializable, Comparable ...@@ -86,7 +86,7 @@ public class File implements Serializable, Comparable
int plen = p.length(); int plen = p.length();
// Special case: permit Windows UNC path prefix. // Special case: permit Windows UNC path prefix.
if (dupSeparator == "\\" && dupIndex == 0) if (dupSeparator.equals("\\") && dupIndex == 0)
dupIndex = p.indexOf(dupSeparator, 1); dupIndex = p.indexOf(dupSeparator, 1);
if (dupIndex == -1) if (dupIndex == -1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment