OSDN Git Service

* java/io/File.java (normalizePath): Use equals() not '==' for string
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Sep 2001 23:18:07 +0000 (23:18 +0000)
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Sep 2001 23:18:07 +0000 (23:18 +0000)
comparison.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45583 138bc75d-0d04-0410-961f-82ee72b054a4

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

index b070110..5530021 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 3ecd7bf..858f2b3 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)