From a865a28af69f4044424521671db90a4360d8bbf1 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 4 Sep 2015 19:05:43 +0200 Subject: [PATCH] Update changelog --- pmd-core/src/main/resources/rulesets/releases/540.xml | 1 + src/site/markdown/overview/changelog.md | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/pmd-core/src/main/resources/rulesets/releases/540.xml b/pmd-core/src/main/resources/rulesets/releases/540.xml index ba806a578f..2086af3205 100644 --- a/pmd-core/src/main/resources/rulesets/releases/540.xml +++ b/pmd-core/src/main/resources/rulesets/releases/540.xml @@ -10,6 +10,7 @@ This ruleset contains links to rules that are new in PMD v5.4.0 + diff --git a/src/site/markdown/overview/changelog.md b/src/site/markdown/overview/changelog.md index 99cb1e03e7..cf492aada7 100644 --- a/src/site/markdown/overview/changelog.md +++ b/src/site/markdown/overview/changelog.md @@ -29,6 +29,9 @@ of this, when `this` alone would be unique. E.g. use just `this` instead of `Foo.this`. * New Rule: rulesets/java/clone.xml/CloneMethodReturnTypeMustMatchClassName: If a class implements cloneable the return type of the method clone() must be the class name. +* New Rule: rulesets/java/clone.xml/CloneMethodMustBePublic: The java manual says "By convention, + classes that implement the cloneable interface should override Object.clone (which is protected) + with a public method." **Modified/Deprecated Rules:** @@ -56,6 +59,7 @@ * [#59](https://github.com/pmd/pmd/pull/59): Add check to Boxed booleans in UseAssertTrueInsteadOfAssertEquals rule * [#60](https://github.com/pmd/pmd/pull/60): Add UselessQualifiedThisRule * [#61](https://github.com/pmd/pmd/pull/61): Add CloneMethodReturnTypeMustMatchClassName rule +* [#62](https://github.com/pmd/pmd/pull/62): Add CloneMethodMustBePublic rule **Bugfixes:**