[java] Fix #5770: New Rule: VariableCanBeInlined#5847
Conversation
c8bfc98 to
fa07c3c
Compare
|
Compared to main: (comment created at 2025-08-08 10:06:18+00:00 for d5e111a) |
fa07c3c to
df87f06
Compare
UnnecessaryLocalBeforeReturnOrThrowsRule
e3fd927 to
e6f5266
Compare
UnnecessaryLocalBeforeReturnOrThrowsRuleUnnecessaryLocalBeforeReturnRule to UnnecessaryLocalBeforeReturnOrThrowsRule
cf0e12e to
6d31e91
Compare
|
I think the new name is too specific because this rule could as well apply to yield statements. I think the best applicable names would be Or even BeforeControlFlowTransfer if you think those are too obscure. I would think people know what a jump is though. |
thanks for the Yes then might use Branch is generic and known in the dev context. |
UnnecessaryLocalBeforeReturnRule to UnnecessaryLocalBeforeReturnOrThrowsRuleUnnecessaryLocalBeforeReturnRule to UnnecessaryLocalBeforeBranch
e703fd7 to
7538251
Compare
|
Let's first fix specification before continuing on the pull request, so that we know, what to do: #5770 |
d5111fa to
c9a957b
Compare
UnnecessaryLocalBeforeReturnRule to UnnecessaryLocalBeforeBranchUnnecessaryLocalBeforeReturnRule and UnnecessaryLocalBeforeBranch into VariableCanBeInlined
UnnecessaryLocalBeforeReturnRule and UnnecessaryLocalBeforeBranch into VariableCanBeInlinedVariableCanBeInlined
c9a957b to
de5e6d5
Compare
|
check issue: again broken window effect still not closed. [INFO] There are 2 errors reported by Checkstyle 10.26.1 with /net/sourceforge/pmd/pmd-checkstyle-config.xml ruleset. |
422d5aa to
d5e111a
Compare
VariableCanBeInlined
adangel
left a comment
There was a problem hiding this comment.
Thanks for the updated PR!
Unfortunately, it is not ready yet, but almost! Can you please have a look?
And don't worry about the release notes, I'll update it once the PR is ready to be merged.
|
Compared to main: (comment created at 2025-08-15 09:46:47+00:00 for a2eb2e4) |
e7140d2 to
728d0e4
Compare
VariableCanBeInlined
VariableCanBeInlined
Fix #5770: [java]
UnnecessaryLocalBeforeReturnOrThrowsRuleevolute
UnnecessaryLocalBeforeReturnRuletoUnnecessaryLocalBeforeReturnOrThrowsRule.Related issues
Ready?
./mvnw clean verifypasses (checked automatically by github actions)