commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mart...@apache.org
Subject cvs commit: jakarta-commons/io/src/java/org/apache/commons/io FilenameUtils.java
Date Fri, 26 Nov 2004 19:18:28 GMT
martinc     2004/11/26 11:18:28

  Modified:    io/src/java/org/apache/commons/io FilenameUtils.java
  Log:
  Fix breakage when getPrefixLength() is fed a string of length one.
  
  Revision  Changes    Path
  1.28      +1 -2      jakarta-commons/io/src/java/org/apache/commons/io/FilenameUtils.java
  
  Index: FilenameUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/io/src/java/org/apache/commons/io/FilenameUtils.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- FilenameUtils.java	23 Nov 2004 00:04:29 -0000	1.27
  +++ FilenameUtils.java	26 Nov 2004 19:18:28 -0000	1.28
  @@ -416,7 +416,6 @@
               }
           } else {
               char ch0 = filename.charAt(0);
  -            char ch1 = filename.charAt(1);
               if (ch0 == '~') {
                   if (len == 1) {
                       return -1;
  
  
  

---------------------------------------------------------------------
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