You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by je...@apache.org on 2003/11/22 21:00:06 UTC
cvs commit: jakarta-commons-sandbox/io/src/java/org/apache/commons/io/filefilter PrefixFileFilter.java
jeremias 2003/11/22 12:00:06
Modified: io/src/java/org/apache/commons/io/filefilter
PrefixFileFilter.java
Log:
Bugfix for single prefix constructor (copy/paste-error)
Revision Changes Path
1.6 +2 -2 jakarta-commons-sandbox/io/src/java/org/apache/commons/io/filefilter/PrefixFileFilter.java
Index: PrefixFileFilter.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/io/src/java/org/apache/commons/io/filefilter/PrefixFileFilter.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- PrefixFileFilter.java 13 Oct 2003 07:03:50 -0000 1.5
+++ PrefixFileFilter.java 22 Nov 2003 20:00:06 -0000 1.6
@@ -91,7 +91,7 @@
* @throws IllegalArgumentException if the prefix is null
*/
public PrefixFileFilter(final String prefix) {
- if (prefixes == null) {
+ if (prefix == null) {
throw new IllegalArgumentException("The prefix must not be null");
}
this.prefixes = new String[] {prefix};
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org