Skip to content

Simplify GraphqlDecoder convertWithOptionalSupport#3273

Merged
velo merged 1 commit intomasterfrom
fix/graphql-decoder-simplify
Mar 17, 2026
Merged

Simplify GraphqlDecoder convertWithOptionalSupport#3273
velo merged 1 commit intomasterfrom
fix/graphql-decoder-simplify

Conversation

@velo
Copy link
Copy Markdown
Member

@velo velo commented Mar 17, 2026

Summary

  • Reuse Types.getRawType() instead of custom rawClass() method
  • Eliminate double-scan of record components (hasOptionalOrNestedRecordComponents + main loop) by tracking needsCustomConstruction in a single pass
  • Remove redundant paramTypes array — use getDeclaredConstructors()[0] for the canonical record constructor
  • Extract loop variable comp for cleaner access

Test plan

  • All 45 graphql module tests pass (no test changes — pure refactor)

🤖 Generated with Claude Code

…ype, eliminate double-scan, use canonical constructor

Signed-off-by: Marvin Froeder <velo.br@gmail.com>
@velo velo merged commit cab4413 into master Mar 17, 2026
4 checks passed
@velo velo deleted the fix/graphql-decoder-simplify branch March 17, 2026 10:48
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