From 72db30c87eec2e6651cce21c711e4fe11fdb05b3 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Mon, 10 Aug 2015 21:10:47 +0200 Subject: [PATCH] Update changelog and add new rule to 540.xml --- pmd-core/src/main/resources/rulesets/releases/540.xml | 1 + pmd-java/src/main/resources/rulesets/java/unnecessary.xml | 2 +- src/site/markdown/overview/changelog.md | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pmd-core/src/main/resources/rulesets/releases/540.xml b/pmd-core/src/main/resources/rulesets/releases/540.xml index a23a408a0d..7bace17042 100644 --- a/pmd-core/src/main/resources/rulesets/releases/540.xml +++ b/pmd-core/src/main/resources/rulesets/releases/540.xml @@ -12,6 +12,7 @@ This ruleset contains links to rules that are new in PMD v5.4.0 + diff --git a/pmd-java/src/main/resources/rulesets/java/unnecessary.xml b/pmd-java/src/main/resources/rulesets/java/unnecessary.xml index 2c6d44fabb..9a53f517d3 100644 --- a/pmd-java/src/main/resources/rulesets/java/unnecessary.xml +++ b/pmd-java/src/main/resources/rulesets/java/unnecessary.xml @@ -278,7 +278,7 @@ public class Foo { diff --git a/src/site/markdown/overview/changelog.md b/src/site/markdown/overview/changelog.md index a47284494a..2f09ae9ad5 100644 --- a/src/site/markdown/overview/changelog.md +++ b/src/site/markdown/overview/changelog.md @@ -36,6 +36,8 @@ can be simplified with a boolean expression. * Modified Rule: rulesets/java/junit.xml/UseAssertTrueInsteadOfAssertEquals: This rule also flags assertEquals, that use Boolean.TRUE/FALSE constants. +* New Rule: rulesets/java/unnecessary.xml/UselessQualifiedThis: Flags unnecessary qualified usages + of this, when `this` alone would be unique. E.g. use just `this` instead of `Foo.this`. **Pull Requests:** @@ -47,6 +49,7 @@ * [#57](https://github.com/pmd/pmd/pull/57): Add default access modifier as comment rule * [#58](https://github.com/pmd/pmd/pull/58): Add rule for unnecessary literal boolean in ternary operators * [#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 **Bugfixes:**