diff --git a/pmd-core/src/main/resources/rulesets/releases/540.xml b/pmd-core/src/main/resources/rulesets/releases/540.xml index 2d703b2286..a23a408a0d 100644 --- a/pmd-core/src/main/resources/rulesets/releases/540.xml +++ b/pmd-core/src/main/resources/rulesets/releases/540.xml @@ -8,6 +8,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/basic.xml b/pmd-java/src/main/resources/rulesets/java/basic.xml index b57546d0df..8a90bc7922 100644 --- a/pmd-java/src/main/resources/rulesets/java/basic.xml +++ b/pmd-java/src/main/resources/rulesets/java/basic.xml @@ -797,7 +797,7 @@ public class Count { @@ -818,9 +818,9 @@ condition && foo when the literalBoolean is false diff --git a/src/site/markdown/overview/changelog.md b/src/site/markdown/overview/changelog.md index e55f0a03ec..8518a28d9e 100644 --- a/src/site/markdown/overview/changelog.md +++ b/src/site/markdown/overview/changelog.md @@ -32,6 +32,8 @@ * New Rule: rulesets/java/comments.xml/CommentDefaultAccessModifier: In order to avoid mistakes with forgotten access modifiers for methods, this rule ensures, that you explicitly mark the usage of the default access modifier by placing a comment. +* New Rule: rulesets/java/basic.xml/SimplifiedTernary: Ternary operator with a boolean literal + can be simplified with a boolean expression. **Pull Requests:** @@ -41,6 +43,7 @@ * [#55](https://github.com/pmd/pmd/pull/55): Fix run.sh for paths with spaces * [#56](https://github.com/pmd/pmd/pull/56): Adding support for WSDL rules * [#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 **Bugfixes:**