Skip to content

Issue #20954: Quote UnusedLocalVariable remaining input messages - #21383

Merged
romani merged 1 commit into
checkstyle:masterfrom
tanvir-ux:issue-20954-unusedlocalvariable-remaining-inputs
Aug 29, 2026
Merged

romani merged 1 commit into
checkstyle:masterfrom
tanvir-ux:issue-20954-unusedlocalvariable-remaining-inputs

Conversation

@tanvir-ux

Copy link
Copy Markdown
Contributor

Fixes remaining UnusedLocalVariable files from #20954 (except Example1.java, which is already covered by another PR).

Violation comments on these inputs used unquoted / paraphrased text, so InlineConfigParser never checked the real message and the files stayed in SUPPRESSED_VALIDATE_MESSAGE_FILES.

Each comment now uses a quoted substring of the actual check message (Unused local variable '…'. or Unused named local variable '…'. when allowUnnamedVariables is true), and the matching suppression entries are removed.

@tanvir-ux
tanvir-ux force-pushed the issue-20954-unusedlocalvariable-remaining-inputs branch from 7526cc6 to cbb4f35 Compare August 29, 2026 00:53
@tanvir-ux
tanvir-ux force-pushed the issue-20954-unusedlocalvariable-remaining-inputs branch from cbb4f35 to f4199d8 Compare August 29, 2026 01:07
@romani
romani merged commit c81b279 into checkstyle:master Aug 29, 2026
129 of 131 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