Skip to content

minor: Rename static variable in UnusedLocalVar check to make more sense#14090

Closed
Vyom-Yadav wants to merge 1 commit intocheckstyle:masterfrom
Vyom-Yadav:minorRenaming
Closed

minor: Rename static variable in UnusedLocalVar check to make more sense#14090
Vyom-Yadav wants to merge 1 commit intocheckstyle:masterfrom
Vyom-Yadav:minorRenaming

Conversation

@Vyom-Yadav
Copy link
Copy Markdown
Member

Please rename this collection to something like CLASS_BODY_DECLARATION_TOKENS or even ANONYMOUS_INNER_CLASS_SCOPES in a separate commit first, container is nonsense in this context. Then update the method naming, etc. appropriately.

Originally posted by @nrmancuso in #13543 (comment)

@romani
Copy link
Copy Markdown
Member

romani commented Dec 2, 2023

Spelling

@Vyom-Yadav
Copy link
Copy Markdown
Member Author

Spelling

Done

Copy link
Copy Markdown
Contributor

@nrmancuso nrmancuso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Item:

* An array of blocks in which local anon inner classes can exist.
*/
private static final int[] CONTAINERS_FOR_ANON_INNERS = {
private static final int[] TYPEDECL_BODY_DECLARATION_TOKENS = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private static final int[] TYPEDECL_BODY_DECLARATION_TOKENS = {
private static final int[] ANONYMOUS_CLASS_PARENT_TOKENS = {

Please do this, we can avoid extension of spelling list, and this is more obvious in the context of a check.

@romani
Copy link
Copy Markdown
Member

romani commented Jun 28, 2024

Moved to #15158

@romani romani closed this Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants