Skip to content

SONARJAVA-6123 Issues for rule S8433#5463

Merged
asya-vorobeva merged 2 commits into
masterfrom
asya/s8433-fix
Feb 16, 2026
Merged

SONARJAVA-6123 Issues for rule S8433#5463
asya-vorobeva merged 2 commits into
masterfrom
asya/s8433-fix

Conversation

@asya-vorobeva
Copy link
Copy Markdown
Contributor

Added fix for the rule S8433 to raise issues only when explicit constructor call is present.

@hashicorp-vault-sonar-prod
Copy link
Copy Markdown
Contributor

hashicorp-vault-sonar-prod Bot commented Feb 16, 2026

SONARJAVA-6123

Copy link
Copy Markdown
Contributor

@rombirli rombirli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change in the code looks good to me, but I'd suggest testing it (constructorCallIndex == -1 is always false)

@asya-vorobeva
Copy link
Copy Markdown
Contributor Author

The change in the code looks good to me, but I'd suggest testing it (constructorCallIndex == -1 is always false)

Sorry? constructorCallIndex == -1 iff we haven't explicit constructor call. As I've said we fix it in our sample (l.136)

@rombirli
Copy link
Copy Markdown
Contributor

Sorry? constructorCallIndex == -1 iff we haven't explicit constructor call. As I've said we fix it in our sample (l.136)

Ah my bad I didn't see this sample, LGTM then

Copy link
Copy Markdown
Contributor

@rombirli rombirli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonarqube-next
Copy link
Copy Markdown

@hashicorp-vault-sonar-prod
Copy link
Copy Markdown
Contributor

The target branch was unlocked and auto-merge was canceled to prevent unexpected actions.

@asya-vorobeva asya-vorobeva merged commit 9444b20 into master Feb 16, 2026
17 checks passed
@asya-vorobeva asya-vorobeva deleted the asya/s8433-fix branch February 16, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants