Branch: refs/heads/main
Home: https://github.com/pmd/pmd
Commit: bfa563c2589b2884c2d28d0659069db9ee577097
https://github.com/pmd/pmd/commit/bfa563c2589b2884c2d28d0659069db9ee577097
Author: Will-6543 <[email protected]>
Date: 2026-09-08 (Tue, 08 Sep 2026)
Changed paths:
M docs/pages/release_notes.md
M
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/design/SimplifyBooleanReturnsRule.java
M
pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/design/xml/SimplifyBooleanReturns.xml
Log Message:
-----------
[java] Fix #6694: Trigger SimplifyBooleanReturns when expressions require
parentheses (#6922)
* non-parethesised conditions and branches still trigger the rule - tests fail
* fixes bug where conditions that need negation would cause rule not to trigger
* updated tests to reflect new behaviour - requirement for parentheses does not
prevent rule trigger
* style violation fixed - indentation added
* implement suggested style changes
* Added testcase provied in issue #6694
* added issue to release notes
* removed empty space
* Added missing backticks on test message
* fixed introduced rule violation in codebase
* fixed more introduced rule violations
* fixed even more new violations
* fixed indentation issues
* fixed npe
* Changes behaviour to ignore triggers which require parentheses whether
present or not
* update old testcases to match new behaviour
To unsubscribe from these emails, change your notification settings at
https://github.com/pmd/pmd/settings/notifications
_______________________________________________
Pmd-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmd-commits