Repository navigation
SONARJAVA-7280 False negative java:S3626: a redundant return inside a lambda body is not reported - #6463
Conversation
|
/pvf |
|
📊 Performance Validation complete Projects with unexpected PVF results:
|
rombirli
left a comment
There was a problem hiding this comment.
LGTM, small suggestions
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Extending S3626 to analyze lambda control-flow graphs changes Java diagnostics and could incorrectly flag non-redundant jumps as removable. Extends ✅ 1 closedClosed: Performance: CFG is built for every expression lambda, which can't hold a redundant jump
Verification Rules 1/1 met Repos 4 inspected · PRs 2 inspectedFunctional validation No results Rules 1 passed 2 not applicable
Broader impact Repos 4 inspected PRs 2 inspectedCross-repo 4 repositories inspected 0 open impacts
Cross-PR 2 PRs inspected 0 open impacts
Auto-approval Not enabledFor more verification details, comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|




Summary by Gitar
RedundantJumpCheckto visit lambda expressions, so redundant returns in lambda bodies are reportedfinallyblocksRemove this redundant continue.This will update automatically on new commits.