Skip to content

fix: Drop redundant 'var' from unnamed pattern variables in DefaultValidator#58

Merged
thced merged 1 commit into
masterfrom
fix/sonar-s7475-unnamed-pattern
May 18, 2026
Merged

fix: Drop redundant 'var' from unnamed pattern variables in DefaultValidator#58
thced merged 1 commit into
masterfrom
fix/sonar-s7475-unnamed-pattern

Conversation

@thced

@thced thced commented May 18, 2026

Copy link
Copy Markdown
Contributor

…lidator

Sonar java:S7475 flags 'var ' inside record patterns: when the binding is the unnamed pattern '', the type witness is meaningless and should be omitted. Strip 'var' from the seven destructured record patterns in the schema dispatch switch.

…lidator

Sonar java:S7475 flags 'var _' inside record patterns: when the binding
is the unnamed pattern '_', the type witness is meaningless and should
be omitted. Strip 'var' from the seven destructured record patterns in
the schema dispatch switch.
@thced thced force-pushed the fix/sonar-s7475-unnamed-pattern branch from d7bbb80 to cdac095 Compare May 18, 2026 09:12
@sonarqubecloud

Copy link
Copy Markdown

@thced thced merged commit 5bd695a into master May 18, 2026
4 checks passed
@thced thced deleted the fix/sonar-s7475-unnamed-pattern branch May 18, 2026 09:18
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.

1 participant