Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restriction of complete package #19

Open
darxriggs opened this issue Oct 5, 2019 · 2 comments
Open

Restriction of complete package #19

darxriggs opened this issue Oct 5, 2019 · 2 comments

Comments

@darxriggs
Copy link

It would be useful to restrict a complete package (even recursively) and just whitelist / mark the public API of a code base as usable. Is there a way to do this with the checker or better use the module system available since Java 9?

Currently it's possible to annotate a package with @Restricted but no restriction is applied then. That's very confusing.

Therefore I suggest to either
a) implement restriction on packages (if possible)
b) apply a @Target annotation on Restricted to prevent its use on packages

@timja
Copy link
Member

timja commented Jan 31, 2021

Implemented here: #13, needs conflicts resolving and re-submitting

@timja
Copy link
Member

timja commented Jan 31, 2021

cc @oleg-nenashev who helped with the other PR: jenkinsci/lib-annotation-indexer#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants