PMD CI (pmd-bot)
2021-05-28 11:20:28 +00:00
parent d9fc166441
commit 3cbaf16e8a
3 changed files with 9 additions and 4 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>Fri, 28 May 2021 11:08:19 +0000</pubDate>
<lastBuildDate>Fri, 28 May 2021 11:08:19 +0000</lastBuildDate>
<pubDate>Fri, 28 May 2021 11:18:32 +0000</pubDate>
<lastBuildDate>Fri, 28 May 2021 11:18:32 +0000</lastBuildDate>
<generator>Jekyll v3.9.0</generator>
</channel>

View File

@ -1572,6 +1572,11 @@ However, <code class="language-plaintext highlighter-rouge">Object.clone()</code
<li><a href="https://github.com/pmd/pmd/pull/3268">#3268</a>: [java] ConstructorCallsOverridableMethod: IndexOutOfBoundsException with annotations</li>
</ul>
</li>
<li>java-performance
<ul>
<li><a href="https://github.com/pmd/pmd/issues/1438">#1438</a>: [java] InsufficientStringBufferDeclaration false positive for initial calculated StringBuilder size</li>
</ul>
</li>
<li>javascript
<ul>
<li><a href="https://github.com/pmd/pmd/issues/699">#699</a>: [javascript] Update Rhino library to 1.7.13</li>

View File

@ -1955,10 +1955,10 @@ is assumed if the length of the constructor can not be determined.</p>
<p><strong>Example(s):</strong></p>
<div class="language-java highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nc">StringBuffer</span> <span class="n">bad</span> <span class="o">=</span> <span class="k">new</span> <span class="nc">StringBuffer</span><span class="o">();</span>
<div class="language-java highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nc">StringBuilder</span> <span class="n">bad</span> <span class="o">=</span> <span class="k">new</span> <span class="nc">StringBuilder</span><span class="o">();</span>
<span class="n">bad</span><span class="o">.</span><span class="na">append</span><span class="o">(</span><span class="s">"This is a long string that will exceed the default 16 characters"</span><span class="o">);</span>
<span class="nc">StringBuffer</span> <span class="n">good</span> <span class="o">=</span> <span class="k">new</span> <span class="nc">StringBuffer</span><span class="o">(</span><span class="mi">41</span><span class="o">);</span>
<span class="nc">StringBuilder</span> <span class="n">good</span> <span class="o">=</span> <span class="k">new</span> <span class="nc">StringBuilder</span><span class="o">(</span><span class="mi">41</span><span class="o">);</span>
<span class="n">good</span><span class="o">.</span><span class="na">append</span><span class="o">(</span><span class="s">"This is a long string, which is pre-sized"</span><span class="o">);</span>
</code></pre></div></div>