Skip to content

Conversation

JackPGreen
Copy link
Contributor

@JackPGreen JackPGreen commented May 21, 2025

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.

Copy link
Member

@romani romani left a 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:

@romani
Copy link
Member

romani commented May 21, 2025

As changes will be cosmetic, I am starting diff testing.

@romani
Copy link
Member

romani commented May 21, 2025

Github, generate report for JavadocVariable/all-examples-in-one

Copy link
Contributor

@romani
Copy link
Member

romani commented May 21, 2025

No diff with report on previous PR https://www.diffchecker.com/z9ZP4ZZt/

I would rather merge this PR.
@JackPGreen , thanks a lot for your help.

@JackPGreen JackPGreen force-pushed the javadoc-reproducer-copied-code branch from d9a4633 to fb4072b Compare May 21, 2025 15:53
@JackPGreen
Copy link
Contributor Author

Please fix CI violations

@JackPGreen JackPGreen requested a review from romani May 21, 2025 18:23
Copy link
Member

@romani romani left a 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

Copy link
Collaborator

@kkoutsilis kkoutsilis left a 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

@romani romani merged commit 1ebcc8f into checkstyle:master May 21, 2025
117 checks passed
devOpsHazelcast pushed a commit to hazelcast/hazelcast that referenced this pull request May 22, 2025
[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
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

Successfully merging this pull request may close these issues.

private enums being treated as public in JavadocVariableCheck
3 participants