GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — [java] Fix #7328: CollapsibleIfStatements: report nested if behind bare blocks by adityaanikam · Pull Request #7336 · pmd/pmd Conversation
Contributor
Describe the PRThe XPath only matched the inner Added a test with one and two bare blocks (reported) and one where the bare block holds another statement (not reported). I also ran the rule with the PMD 7.28.0 CLI on the issue's two files and on a few extra cases (else on either if, if inside a lambda, try block, else-if chain), and only the bare-block cases changed. Related issues
Ready?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Compared to main: (comment created at 2026-11-27 17:41:49+00:00 for 11fb1a1) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…re-block # Conflicts: # docs/pages/release_notes.md
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[java] CollapsibleIfStatements: not reported when a bare block separates the two if statements
There was an error while loading. Please reload this page.