Skip to content

KAFKA-20551: Remove unnecessary generics from TxnOffsetCommitResponse, OffsetCommitResponse, and OffsetDeleteResponse#22210

Open
JiayaoS wants to merge 1 commit intoapache:trunkfrom
JiayaoS:fix/KAFKA-20551
Open

KAFKA-20551: Remove unnecessary generics from TxnOffsetCommitResponse, OffsetCommitResponse, and OffsetDeleteResponse#22210
JiayaoS wants to merge 1 commit intoapache:trunkfrom
JiayaoS:fix/KAFKA-20551

Conversation

@JiayaoS
Copy link
Copy Markdown
Contributor

@JiayaoS JiayaoS commented May 5, 2026

Simplify the addPartitions builder methods by replacing the generic type parameter <P> and the Function mapper with explicit request partition classes (e.g., OffsetCommitRequestPartition). This removes unnecessary abstraction that was only useful in test cases, and streamlines the API usages across both production and test code.

…, OffsetCommitResponse, and OffsetDeleteResponse
@github-actions github-actions Bot added triage PRs from the community core Kafka Broker clients small Small PRs labels May 5, 2026
Copy link
Copy Markdown
Collaborator

@m1a2st m1a2st left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@github-actions github-actions Bot removed the triage PRs from the community label May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants