feat: harden spec immutability#968
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces defensive copying and immutability for collection fields across several record classes and builders in the org.a2aproject.sdk.spec package using List.copyOf and Map.copyOf. The review feedback suggests further refining these changes by replacing @Nullable Boolean with a primitive boolean in MessageSendConfiguration and utilizing explicit canonical constructors in CancelTaskParams to avoid redundant null checks on record accessors when non-null default values are guaranteed.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
1dea97f to
be8709f
Compare
be8709f to
1151c80
Compare
Spec cleanup: immutable records and copy semantics
Build fails after
actions/checkoutwas bumped from v6 to v7 in PR #948:#948