-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Issue #16786: Ensure enum constants accessibility is properly evaluated (addressing JavadocVariableCheck
_only_)
#17112
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
Issue #16786: Ensure enum constants accessibility is properly evaluated (addressing JavadocVariableCheck
_only_)
#17112
Conversation
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.
We are lucky.
Please fix CI violations and:
src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocVariableCheck.java
Outdated
Show resolved
Hide resolved
As changes will be cosmetic, I am starting diff testing. |
Github, generate report for JavadocVariable/all-examples-in-one |
Report for JavadocVariable/all-examples-in-one: |
No diff with report on previous PR https://www.diffchecker.com/z9ZP4ZZt/ I would rather merge this PR. |
d9a4633
to
fb4072b
Compare
✅ |
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 vote for this fix
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.
Looks fine to me, thanks @JackPGreen
[A bug was introduced in checkstyle](checkstyle/checkstyle#16786) that [blocked us from upgrading](https://github.com/hazelcast/hazelcast-mono/pull/4142#pullrequestreview-2746790707). Although this is [now fixed](checkstyle/checkstyle#17112), [they have asked](c4ed533#r157717810) if the version of checkstyle used could be externalised to allow the codebase to be used as part of testing new checkstyle versions. GitOrigin-RevId: 329a865e27e6aecaa56d74a44a170db1a8df9d8e
Extends change in #16049, in the case of an enum constant, it's accessibility will be derived based on the enclosing enum (which could be
private
) rather than being assumed to be implicitly public.Test(s) added to validate.
Fixes: #16786
Closes: #16787
This is alternative implementation of #16787, but affecting only
JavadocVariableCheck
to address concerns.