Update changelog, add the new rule to 540.xml

This commit is contained in:
Andreas Dangel
2015-08-31 18:01:03 +02:00
parent 7ea022a230
commit 36f48c9159
3 changed files with 21 additions and 12 deletions

View File

@ -136,7 +136,10 @@ public class MyClass {
class="net.sourceforge.pmd.lang.rule.XPathRule"
externalInfoUrl="${pmd.website.baseurl}/rules/java/clone.html#CloneMethodReturnTypeMustMatchClassName">
<description>
If a class implements cloneable the return type of the method clone() must be the class name.
If a class implements cloneable the return type of the method clone() must be the class name. That way, the caller
of the clone method doesn't need to cast the returned clone to the correct type.
Note: This is only possible with Java 1.5 or higher.
</description>
<priority>3</priority>
<properties>