-
Notifications
You must be signed in to change notification settings - Fork 354
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
Remove misleading @Restricted annotation on package #235
Conversation
I'd prefer if the API was moved to a separate plugin or we found a way to combine efforts working on an existing API library |
I also opened this issue jenkinsci/lib-access-modifier#19. |
+1 for a separate plugin. No opinion about this PR, I am not sure maintainers want to open API |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Ping @Casz for the final decision |
🤷♂️ |
Maybe I missed to add enough information. Seeing your comments I am not sure if the goal of this pull request was fully understood. At least I did not completely understand your comments. So let me try again.
In addition I am asking myself why was the api be restricted in the first place. That's the whole idea of an api to be the interface that can be used. Maybe I am missing something. |
As I recall this was added to avoid users depending on this plugin to only use the API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with this either way
Who is merging it? |
I wasn't aware of this issue in the access-modifier-checker. It should be fixed there instead of removing the restriction here.
This package is named I wouldn't open this for usages by other plugins, cause doing so would make the evolution of this internal part of the code much more difficult (would need to keep backward compatibility). The right thing is to create a That's my opinion, but I let @Casz to decide as the main maintainer. |
Remove misleading @restricted annotation from the package. A package can be annotated but no restriction is applied! Therefore annotating all classes in the package to take effect.
fdae124
to
ea5c7c5
Compare
Ok now I understood what this I added a small Javadoc to the package and annotated all classes in the package to properly restrict them from external use as originally intended. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
A package can be annotated. BUT: No restriction is applied!