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/filefilter AbstractFileFilter.java
Date Sun, 24 Oct 2004 16:50:23 GMT
martinc     2004/10/24 09:50:23

  Modified:    io/src/java/org/apache/commons/io/filefilter
                        AbstractFileFilter.java
  Log:
  Let java.io.File join the directory and the filename for us.
  
  Revision  Changes    Path
  1.10      +2 -3      jakarta-commons/io/src/java/org/apache/commons/io/filefilter/AbstractFileFilter.java
  
  Index: AbstractFileFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/io/src/java/org/apache/commons/io/filefilter/AbstractFileFilter.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- AbstractFileFilter.java	23 Feb 2004 04:37:57 -0000	1.9
  +++ AbstractFileFilter.java	24 Oct 2004 16:50:23 -0000	1.10
  @@ -50,8 +50,7 @@
        * @return true if this file matches the test
        */
       public boolean accept(File dir, String name) {
  -        String filename = dir.getName() + File.separator + name;
  -        return accept(new File(filename));
  +        return accept(new File(dir, name));
       }
   
   }
  
  
  

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