[doc] Update release notes, new rule UnusedAssignment

This commit is contained in:
Andreas Dangel
2020-07-16 19:12:05 +02:00
parent 556685de1b
commit a8a3fccdf5
4 changed files with 22 additions and 1 deletions

View File

@ -1316,7 +1316,8 @@ class Foo{
The rule may be suppressed with the standard `@SuppressWarnings("unused")` tag.
The rule subsumes UnusedLocalVariable, and UnusedFormalParameter. Those violations are filtered
The rule subsumes {% rule "UnusedLocalVariable" %}, and {% rule "UnusedFormalParameter" %}.
Those violations are filtered
out by default, in case you already have enabled those rules, but may be enabled with the property
`reportUnusedVariables`. Variables whose name starts with `ignored` are filtered out, as
is standard practice for exceptions.

View File

@ -41,6 +41,7 @@
<!-- <rule ref="category/java/bestpractices.xml/ReplaceVectorWithList" /> -->
<rule ref="category/java/bestpractices.xml/SwitchStmtsShouldHaveDefault"/>
<!-- <rule ref="category/java/bestpractices.xml/SystemPrintln" /> -->
<!-- <rule ref="category/java/bestpractices.xml/UnusedAssignment"/> -->
<rule ref="category/java/bestpractices.xml/UnusedFormalParameter"/>
<rule ref="category/java/bestpractices.xml/UnusedImports"/>
<rule ref="category/java/bestpractices.xml/UnusedLocalVariable"/>