File.java (normalizePath): Use equals() not '==' for string comparison.
authorBryce McKinlay <bryce@waitaki.otago.ac.nz>
Thu, 13 Sep 2001 23:18:07 +0000 (23:18 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Thu, 13 Sep 2001 23:18:07 +0000 (00:18 +0100)
* java/io/File.java (normalizePath): Use equals() not '==' for string
comparison.

From-SVN: r45583

libjava/ChangeLog
libjava/java/io/File.java

index b07011045219566921a449d271747a8a0cf4a752..5530021402a6f40f7e6b201d793450bbff380460 100644 (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.
index 3ecd7bf037dfd4f3d7873ec8deafb334a914045c..858f2b37caea9372c0c672f1608523fd8127c3c9 100644 (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)