You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ma...@apache.org on 2004/10/24 18:50:23 UTC

cvs commit: jakarta-commons/io/src/java/org/apache/commons/io/filefilter AbstractFileFilter.java

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