pmd: update changelog etc. with new rule ConsecutiveAppendsShouldReuse

This commit is contained in:
Andreas Dangel committed 2013-07-30 21:00:52 +02:00
1 parent ff21265893
commit cdf3d2a9cb
3 files changed
+4 -1

No files matched your search

+2
View File
@@ -15,6 +15,8 @@ New Java rules:
- basic rule to check for existence for formal (javadoc) comments.
AvoidProtectedMethodInFinalClassNotExtending
- rule to avoid protected methods in final classes that don't extend anything other than Object.
ConsecutiveAppendsShouldReuse
- rule to encourage to reuse StringBuilder.append returned object for consecutive calls.
CPD Command Line Changes:
Added non-recursive option "--non-recursive" to not scan sub-directories
@@ -154,7 +154,7 @@ sb.append('a'); // use this instead
class="net.sourceforge.pmd.lang.rule.XPathRule"
externalInfoUrl="${pmd.website.baseurl}/rules/java/strings.html#ConsecutiveAppendsShouldReuse">
<description>
Consecutively calls to StringBuffer/StringBuilder .append must reuse the target object. This will improve the performance.
Consecutively calls to StringBuffer/StringBuilder .append should reuse the target object. This can improve the performance.
</description>
<priority>3</priority>
<properties>
@@ -14,5 +14,6 @@ This ruleset contains links to rules that are new in PMD v5.1.0
<rule ref="rulesets/java/design.xml/AvoidProtectedMethodInFinalClassNotExtending"/>
<rule ref="rulesets/java/strings.xml/ConsecutiveAppendsShouldReuse"/>
</ruleset>