Skip to content

Conversation

@commonquail
Copy link
Contributor

A false positive UnusedException can be suppressed by naming the caught exception /unused.*/. The recently added UnnamedVariable, in the meantime, wants deliberately unused variables to be unnamed with the Java 22 _ character, putting the two checks at odds. Teach UnusedException to also accept _ as a suppression mechanism.

A false positive `UnusedException` can be suppressed by naming the
caught exception `/unused.*/`. `UnnamedVariable`, in the meantime, wants
deliberately unused variables to be unnamed with the Java 22 `_`
character, putting the two checks at odds. Teach `UnusedException` to
also accept `_` as a suppression mechanism.
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.

1 participant