lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-3132) Use FileFilter instead of FileNameFilter in FSDirectory.listAll
Date Sun, 22 May 2011 07:54:47 GMT
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message