Repository navigation
SONARJAVA-7282 False negative java:S2168: not reported when the outer null check is written !(helper != null) - #6450
Conversation
|
/pvf |
|
📊 Performance Validation complete Projects with unexpected PVF results:
|
Code Review ✅ Approved🟡 Medium risk · Extending the double-checked-locking rule to unwrap negations could add diagnostics for previously missed patterns, changing analysis results in affected projects. Extends Verification Rules 1/1 met Repos 4 inspected · PRs 1 inspectedFunctional validation No results Rules 1 passed 2 not applicable
Broader impact Repos 4 inspected PRs 1 inspectedCross-repo 4 repositories inspected 0 open impacts
Cross-PR 1 PR 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
DoubleCheckedLockingCheckto unwrap parentheses and logical complements in if conditions, so!(helper != null)is detectedThis will update automatically on new commits.