Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehutch committed Oct 28, 2021
1 parent 0920507 commit fc0e3f6
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -578,8 +578,10 @@ public static String classNameToClassfilePath(final String className) {
* @return The Pattern created from the glob string.
*/
public static Pattern globToPattern(final String glob, final boolean simpleGlob) {
// TODO: when API is next broken, make all glob behavior consistent between accept/reject criteria
// and resource filtering (i.e. enforce simpleGlob == false)
// TODO: when API is next changed, make all glob behavior consistent between accept/reject criteria
// and resource filtering (i.e. enforce simpleGlob == false, at least for accept/reject criteria for
// paths, although packages/classes would need different handling because ** should work across
// packages of any depth, rather than paths of any number of segments)
return Pattern.compile("^" //
+ (simpleGlob //
? glob.replace(".", "\\.") //
Expand Down

0 comments on commit fc0e3f6

Please sign in to comment.