commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Wooten (JIRA)" <>
Subject [jira] Created: (IO-229) Convert AndFileFilter Constructor to Use Varargs
Date Mon, 01 Mar 2010 21:08:05 GMT
Convert AndFileFilter Constructor to Use Varargs

                 Key: IO-229
             Project: Commons IO
          Issue Type: Improvement
          Components: Filters
    Affects Versions: 2.0
         Environment: Java 1.5+
            Reporter: Michael Wooten
            Priority: Minor
             Fix For: 2.0

I suggest converting the AndFileFilter(IOFileFilter filter1, IOFileFilter filter2) constructor
to use varargs and instead have the signature AndFileFilter(IOFileFilter... filters). The
benefit is that new AndFileFilters could be created without having to create a list or limit
the initial number of filters to two.
IOFileFilter hiddenNonEmptyTextFileFilter = new AndFileFilter(HiddenFileFilter.HIDDEN, EmptyFileFilter.NOT_EMPTY,
new SuffixFileFilter(".txt"));

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message