You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API.consumers allows according to the documentation the usage of wildcards:
The supplied packages can be fully qualified package names or patterns containing asterisks that will be used as wildcards.
However, it is not very specific regarding the following:
What is a wildcard? Only *?
Do wildcards apply only to one package nesting depth or to this depth and all "sub packages". E.g. does a.* match a.b and a.b.c?
Note that Java does not have a concept of "sub packages" so for example a package-private type in a cannot be seen by a type in a.b.
Do wildcards match if that nesting depth is not present (related to point 1 above)? E.g. a.b.* matching a.b
Can wildcards only appear at the end, or may they also appear in the middle or the front of the package name (if so how does points 2 and 3 above apply)? E.g. *.a.*.b
May wildcards only appear as replacement for a complete "sub package name" or may they also be used within "sub package" names (and if so, how would they match)? E.g. a.tes* matching a.test and a.testing
Note that I do not suggest that the behavior described above is the desired one, it only lists what one might expect from wildcards.
Could you please clarify this in the documentation and possibly include some examples?
The text was updated successfully, but these errors were encountered:
API.consumers
allows according to the documentation the usage of wildcards:However, it is not very specific regarding the following:
*
?a.*
matcha.b
anda.b.c
?Note that Java does not have a concept of "sub packages" so for example a package-private type in
a
cannot be seen by a type ina.b
.a.b.*
matchinga.b
*.a.*.b
a.tes*
matchinga.test
anda.testing
Note that I do not suggest that the behavior described above is the desired one, it only lists what one might expect from wildcards.
Could you please clarify this in the documentation and possibly include some examples?
The text was updated successfully, but these errors were encountered: