Skip to content

Conversation

@DomGarguilo
Copy link
Member

The main change here is to add the Preconditions.checkState(allSummaries != null) before we try to use allSummaries. The code just relied on external usage being correct (avoiding calling these methods when allSummaries was passed in as null) and this change makes that check explicit.

While I was changing the file, I made the class into a record which simplified the boilerplate a lot for both SummarySerializer and SummarySerializer.LgSummaries

@DomGarguilo DomGarguilo added this to the 4.0.0 milestone Oct 2, 2025
@DomGarguilo DomGarguilo self-assigned this Oct 2, 2025
@DomGarguilo DomGarguilo merged commit 5d58c80 into apache:main Oct 14, 2025
8 checks passed
@DomGarguilo DomGarguilo deleted the summarizerSerializerImprovements branch October 14, 2025 20:25
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.

2 participants