Skip to content

Commit fe4ff5c

Browse files
author
Niall Pemberton
committed
Fix IO-202 NotFileFilter documentation is incorrect - thanks to Matthew Flaschen for the patch
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@768750 13f79535-47bb-0310-9956-ffa450edef68
1 parent 151b816 commit fe4ff5c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class NotFileFilter extends AbstractFileFilter implements Serializable {
3333
private final IOFileFilter filter;
3434

3535
/**
36-
* Constructs a new file filter that NOTs the result of another filters.
36+
* Constructs a new file filter that NOTs the result of another filter.
3737
*
3838
* @param filter the filter, must not be null
3939
* @throws IllegalArgumentException if the filter is null
@@ -46,7 +46,7 @@ public NotFileFilter(IOFileFilter filter) {
4646
}
4747

4848
/**
49-
* Checks to see if both filters are true.
49+
* Returns the logical NOT of the underlying filter's return value for the same File.
5050
*
5151
* @param file the File to check
5252
* @return true if the filter returns false
@@ -57,7 +57,7 @@ public boolean accept(File file) {
5757
}
5858

5959
/**
60-
* Checks to see if both filters are true.
60+
* Returns the logical NOT of the underlying filter's return value for the same arguments.
6161
*
6262
* @param file the File directory
6363
* @param name the filename

0 commit comments

Comments
 (0)