mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
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:
committed by
Bryce McKinlay
parent
bdcbe49686
commit
7364d5f851
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user