Skip to content

Commit ea4523f

Browse files
committed
Let java.io.File join the directory and the filename for us.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@140615 13f79535-47bb-0310-9956-ffa450edef68
1 parent e47d347 commit ea4523f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/java/org/apache/commons/io/filefilter/AbstractFileFilter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* otherwise your class will infinitely loop.
2626
*
2727
* @since Commons IO 1.0
28-
* @version $Revision: 1.9 $ $Date: 2004/02/23 04:37:57 $
28+
* @version $Revision: 1.10 $ $Date: 2004/10/24 16:50:23 $
2929
*
3030
* @author Henri Yandell
3131
* @author Stephen Colebourne
@@ -50,8 +50,7 @@ public boolean accept(File file) {
5050
* @return true if this file matches the test
5151
*/
5252
public boolean accept(File dir, String name) {
53-
String filename = dir.getName() + File.separator + name;
54-
return accept(new File(filename));
53+
return accept(new File(dir, name));
5554
}
5655

5756
}

0 commit comments

Comments
 (0)