Skip to content

Commit 8d0d2d8

Browse files
committed
IO-374 WildcardFileFilter ctors should not use null to mean IOCase.SENSITIVE when delegating to other ctors
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1465476 13f79535-47bb-0310-9956-ffa450edef68
1 parent aef6e9d commit 8d0d2d8

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ The <action> type attribute can be add,update,fix,remove.
4747
<body>
4848
<!-- The release date is the date RC is cut -->
4949
<release version="2.5" date="2013-??-??" description="New features and bug fixes.">
50+
<action issue="IO-374" dev="sebb" type="fix">
51+
WildcardFileFilter ctors should not use null to mean IOCase.SENSITIVE when delegating to other ctors
52+
</action>
5053
<action issue="IO-362" dev="ggregory" type="fix" due-to="mmadson, ggregory">
5154
IOUtils.contentEquals* methods returns false if input1 == input2, should return true.
5255
</action>

src/main/java/org/apache/commons/io/filefilter/WildcardFileFilter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class WildcardFileFilter extends AbstractFileFilter implements Serializab
6262
* @throws IllegalArgumentException if the pattern is null
6363
*/
6464
public WildcardFileFilter(final String wildcard) {
65-
this(wildcard, null);
65+
this(wildcard, IOCase.SENSITIVE);
6666
}
6767

6868
/**
@@ -88,7 +88,7 @@ public WildcardFileFilter(final String wildcard, final IOCase caseSensitivity) {
8888
* @throws IllegalArgumentException if the pattern array is null
8989
*/
9090
public WildcardFileFilter(final String[] wildcards) {
91-
this(wildcards, null);
91+
this(wildcards, IOCase.SENSITIVE);
9292
}
9393

9494
/**
@@ -116,7 +116,7 @@ public WildcardFileFilter(final String[] wildcards, final IOCase caseSensitivity
116116
* @throws ClassCastException if the list does not contain Strings
117117
*/
118118
public WildcardFileFilter(final List<String> wildcards) {
119-
this(wildcards, null);
119+
this(wildcards, IOCase.SENSITIVE);
120120
}
121121

122122
/**

0 commit comments

Comments
 (0)