Update documentation

TRAVIS_JOB_NUMBER=5698.2
TRAVIS_COMMIT_RANGE=241195c7bc74...bb8edec8c982
This commit is contained in:
Travis CI (pmd-bot)
2020-08-13 12:44:42 +00:00
parent d5ba83423d
commit fcc7ef7e9a
3 changed files with 16 additions and 2 deletions

View File

@ -5,8 +5,8 @@
<description>Intended as a documentation theme based on Jekyll for technical writers documenting software and other technical products, this theme has all the elements you would need to handle multiple products with both multi-level sidebar navigation, tags, and other documentation features.</description>
<link>https://pmd.github.io/pmd/</link>
<atom:link href="https://pmd.github.io/pmd/feed.xml" rel="self" type="application/rss+xml"/>
<pubDate>Thu, 13 Aug 2020 08:20:30 +0000</pubDate>
<lastBuildDate>Thu, 13 Aug 2020 08:20:30 +0000</lastBuildDate>
<pubDate>Thu, 13 Aug 2020 12:41:53 +0000</pubDate>
<lastBuildDate>Thu, 13 Aug 2020 12:41:53 +0000</lastBuildDate>
<generator>Jekyll v3.9.0</generator>
</channel>

View File

@ -1442,6 +1442,8 @@ which was introduced in PMD 6.26.0.</li>
<ul>
<li><a href="https://github.com/pmd/pmd/issues/2471">#2471</a>: [java] New Rule: AvoidReassigningCatchVariables</li>
<li><a href="https://github.com/pmd/pmd/issues/2668">#2668</a>: [java] UnusedAssignment false positives</li>
<li><a href="https://github.com/pmd/pmd/issues/2684">#2684</a>: [java] UnusedAssignment FP in try/catch</li>
<li><a href="https://github.com/pmd/pmd/issues/2686">#2686</a>: [java] UnusedAssignment must not flag abstract method parameters in interfaces and abstract classes</li>
</ul>
</li>
<li>java-errorprone

View File

@ -2976,6 +2976,18 @@ out by default, in case you already have enabled those rules, but may be enabled
<code class="language-plaintext highlighter-rouge">reportUnusedVariables</code>. Variables whose name starts with <code class="language-plaintext highlighter-rouge">ignored</code> are filtered out, as
is standard practice for exceptions.</p>
<p>Limitations:</p>
<ul>
<li>The rule currently cannot know which method calls throw exceptions, or which exceptions they throw.
In the body of a try block, every method or constructor call is assumed to throw. This may cause false-negatives.
The only other language construct that is assumed to throw is the <code class="language-plaintext highlighter-rouge">throw</code> statement, in particular,
things like <code class="language-plaintext highlighter-rouge">assert</code> statements, or NullPointerExceptions on dereference are ignored.</li>
<li>The rule cannot resolve assignments across constructors, when theyre called with the special
<code class="language-plaintext highlighter-rouge">this(...)</code> syntax. This may cause false-negatives.</li>
</ul>
<p>Both of those limitations may be partly relaxed in PMD 7.</p>
<p><strong>This rule is defined by the following Java class:</strong> <a href="https://github.com/pmd/pmd/blob/master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/bestpractices/UnusedAssignmentRule.java">net.sourceforge.pmd.lang.java.rule.bestpractices.UnusedAssignmentRule</a></p>
<p><strong>Example(s):</strong></p>