Use FileFilter instead of FileNameFilter in FSDirectory.listAll
---------------------------------------------------------------

                 Key: LUCENE-3132
                 URL: https://issues.apache.org/jira/browse/LUCENE-3132
             Project: Lucene - Java
          Issue Type: Improvement
            Reporter: Shai Erera
            Assignee: Shai Erera
            Priority: Trivial
             Fix For: 3.2, 4.0


FSDirectory.listAll() uses FileNameFilter, but all it does is check whether the 
File + name given denotes a directory. For that, it does new File(dir, 
file).isDirectory(). If we use FileFilter, new File() won't be necessary. This 
is a trivial thing, I'll post a patch soon.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to