Skip to content

Issue #20954: Quote UnusedLocalVariable messages in Example2 and Example4 - #21362

Merged
romani merged 1 commit into
checkstyle:masterfrom
tanvir-ux:issue-20954-unusedlocalvariable-example2-4
Aug 27, 2026
Merged

romani merged 1 commit into
checkstyle:masterfrom
tanvir-ux:issue-20954-unusedlocalvariable-example2-4

Conversation

@tanvir-ux

Copy link
Copy Markdown
Contributor

Description

Part of #20954.

Updates Example2 and Example4 for UnusedLocalVariable so violation comments use the real quoted message text (Unused local variable '…'.) instead of paraphrased notes. Removes both files from SUPPRESSED_VALIDATE_MESSAGE_FILES so message validation runs again.

Testing

mvn -Dtest=UnusedLocalVariableCheckExamplesTest -Djacoco.skip=true clean test

All 4 tests in UnusedLocalVariableCheckExamplesTest passed.

@tanvir-ux
tanvir-ux force-pushed the issue-20954-unusedlocalvariable-example2-4 branch from 20b4888 to d9e16b3 Compare August 27, 2026 00:48

@romani romani left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot

@romani
romani merged commit 5f03463 into checkstyle:master Aug 27, 2026
79 checks passed
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.

2 participants