Skip to content

SONARJAVA-6455 S7467: FP on broken semantics - #5853

Open
asya-vorobeva wants to merge 1 commit into
masterfrom
s7467-fp-when-broken-semantics
Open

SONARJAVA-6455 S7467: FP on broken semantics#5853
asya-vorobeva wants to merge 1 commit into
masterfrom
s7467-fp-when-broken-semantics

Conversation

@asya-vorobeva

Copy link
Copy Markdown
Contributor

Without semantics, catch parameter usages() is always empty, causing false positives. Guard with context.getSemanticModel() != null.

Without semantics, catch parameter usages() is always empty, causing
false positives. Guard with context.getSemanticModel() != null.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

SONARJAVA-6455

@gitar-bot

gitar-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Guards catch parameter usage checks with a semantic model null check to prevent false positives when semantics are absent. No issues found.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@sonarqube-next

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 7 days with no activity. If there is no activity in the next 7 days it will be closed automatically

@github-actions github-actions Bot added the stale label Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant