Skip to content

GG-407 Explicit-null vs not provided Java records#429

Open
folkef6 wants to merge 1 commit intomainfrom
GG-407-optional-record-fields
Open

GG-407 Explicit-null vs not provided Java records#429
folkef6 wants to merge 1 commit intomainfrom
GG-407-optional-record-fields

Conversation

@folkef6
Copy link
Copy Markdown
Collaborator

@folkef6 folkef6 commented Mar 26, 2026

Support Optional fields in Java records for explicit-null vs omitted tracking

Allow developers to declare Java record setter parameters as Optional, enabling tri-state handling: value present, explicit null, or field omitted. Graphitron detects Optional setters via reflection at codegen time and wraps values with Optional.ofNullable().

…s omitted tracking

Allow developers to declare Java record setter parameters as Optional<T>,
enabling tri-state handling: value present, explicit null, or field omitted.
Graphitron detects Optional setters via reflection at codegen time and wraps
values with Optional.ofNullable().
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