commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject cvs commit: jakarta-commons/io/src/test/org/apache/commons/io FilenameUtilsTestCase.java FileUtilsTestCase.java
Date Fri, 12 Mar 2004 21:44:47 GMT
jeremias    2004/03/12 13:44:47

  Modified:    io/src/test/org/apache/commons/io FilenameUtilsTestCase.java
                        FileUtilsTestCase.java
  Log:
  Reestablish JDK 1.3 compatibility.
  
  Revision  Changes    Path
  1.6       +2 -2      jakarta-commons/io/src/test/org/apache/commons/io/FilenameUtilsTestCase.java
  
  Index: FilenameUtilsTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/io/src/test/org/apache/commons/io/FilenameUtilsTestCase.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- FilenameUtilsTestCase.java	23 Feb 2004 05:02:25 -0000	1.5
  +++ FilenameUtilsTestCase.java	12 Mar 2004 21:44:47 -0000	1.6
  @@ -185,7 +185,7 @@
           String replaceWith) {
           StringBuffer sb = new StringBuffer(text);
           while (true) {
  -            int idx = sb.indexOf(lookFor);
  +            int idx = sb.toString().indexOf(lookFor);
               if (idx < 0) {
                   break;
               }
  
  
  
  1.12      +2 -2      jakarta-commons/io/src/test/org/apache/commons/io/FileUtilsTestCase.java
  
  Index: FileUtilsTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/io/src/test/org/apache/commons/io/FileUtilsTestCase.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- FileUtilsTestCase.java	23 Feb 2004 05:02:25 -0000	1.11
  +++ FileUtilsTestCase.java	12 Mar 2004 21:44:47 -0000	1.12
  @@ -316,7 +316,7 @@
           String replaceWith) {
           StringBuffer sb = new StringBuffer(text);
           while (true) {
  -            int idx = sb.indexOf(lookFor);
  +            int idx = sb.toString().indexOf(lookFor);
               if (idx < 0) {
                   break;
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message