Skip to content

Commit 5e0fe4d

Browse files
committed
Javadoc clarifications
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1002801 13f79535-47bb-0310-9956-ffa450edef68
1 parent e295fae commit 5e0fe4d

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/java/org/apache/commons/io/FilenameUtils.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ public static boolean isExtension(String filename, Collection<String> extensions
11751175
* always testing case-sensitive.
11761176
* <p>
11771177
* The wildcard matcher uses the characters '?' and '*' to represent a
1178-
* single or multiple wildcard characters.
1178+
* single or multiple (zero or more) wildcard characters.
11791179
* This is the same as often found on Dos/Unix command lines.
11801180
* The check is case-sensitive always.
11811181
* <pre>
@@ -1200,7 +1200,7 @@ public static boolean wildcardMatch(String filename, String wildcardMatcher) {
12001200
* using the case rules of the system.
12011201
* <p>
12021202
* The wildcard matcher uses the characters '?' and '*' to represent a
1203-
* single or multiple wildcard characters.
1203+
* single or multiple (zero or more) wildcard characters.
12041204
* This is the same as often found on Dos/Unix command lines.
12051205
* The check is case-sensitive on Unix and case-insensitive on Windows.
12061206
* <pre>
@@ -1225,7 +1225,7 @@ public static boolean wildcardMatchOnSystem(String filename, String wildcardMatc
12251225
* allowing control over case-sensitivity.
12261226
* <p>
12271227
* The wildcard matcher uses the characters '?' and '*' to represent a
1228-
* single or multiple wildcard characters.
1228+
* single or multiple (zero or more) wildcard characters.
12291229
*
12301230
* @param filename the filename to match on
12311231
* @param wildcardMatcher the wildcard string to match against
@@ -1317,9 +1317,11 @@ public static boolean wildcardMatch(String filename, String wildcardMatcher, IOC
13171317

13181318
/**
13191319
* Splits a string into a number of tokens.
1320+
* The text is split by '?' and '*'.
1321+
* Where multiple '*' occur consecutively they are collapsed into a single '*'.
13201322
*
13211323
* @param text the text to split
1322-
* @return the tokens, never null
1324+
* @return the array of tokens, never null
13231325
*/
13241326
static String[] splitOnTokens(String text) {
13251327
// used by wildcardMatch

0 commit comments

Comments
 (0)