Skip to content

fix: Unbox Boolean pattern variable before ternary in SchemaParser#59

Merged
thced merged 1 commit into
masterfrom
fix/sonar-s5411-primitive-boolean
May 18, 2026
Merged

fix: Unbox Boolean pattern variable before ternary in SchemaParser#59
thced merged 1 commit into
masterfrom
fix/sonar-s5411-primitive-boolean

Conversation

@thced

@thced thced commented May 18, 2026

Copy link
Copy Markdown
Contributor

Sonar java:S5411 flags using a boxed Boolean directly in a ternary as the implicit unboxing can NPE. Assign to a primitive local first so the intent is explicit and the rule passes.

Sonar java:S5411 flags using a boxed Boolean directly in a ternary as
the implicit unboxing can NPE. Assign to a primitive local first so the
intent is explicit and the rule passes.
@sonarqubecloud

Copy link
Copy Markdown

@thced thced merged commit 258cc1d into master May 18, 2026
4 checks passed
@thced thced deleted the fix/sonar-s5411-primitive-boolean branch May 18, 2026 09:17
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