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] New rule: UnnecessaryBlock by UncleOwen · Pull Request #6639 · pmd/pmd Conversation
|
|
Compared to main: (comment created at 2026-05-08 14:03:19+00:00 for 8bdd308) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Clément Fournier <[email protected]>
|
Sometimes copy-paste errors can create which might make sense to also catch (i.e. if parent size is 1, report it without checking for variable definitions). The Spring regressions show another usecase where blocks are used to limit scope of anonymous classes -- should that be acceptable? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks. Adding checks for the I did look at the spring framework regression reports... and completely missed the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
If it's not a violation, the method should not be called "bad", but "good"
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The functionality looks good, we need to improve the docs.
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.
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.
…style/UnnecessaryBlockRule.java Co-authored-by: Andreas Dangel <[email protected]>
Co-authored-by: Andreas Dangel <[email protected]>
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] New rule: UnnecessaryBlock
There was an error while loading. Please reload this page.