diff --git a/src/main/java/nonapi/io/github/classgraph/scanspec/AcceptReject.java b/src/main/java/nonapi/io/github/classgraph/scanspec/AcceptReject.java index a1ae17afb..f7b098b75 100644 --- a/src/main/java/nonapi/io/github/classgraph/scanspec/AcceptReject.java +++ b/src/main/java/nonapi/io/github/classgraph/scanspec/AcceptReject.java @@ -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(".", "\\.") //