Skip to content

MINOR: Cleanup Trogdor Module #20214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

sjhajharia
Copy link
Contributor

Now that Kafka support Java 17, this PR makes some changes in trogdor
module. The changes mostly include:

  • Collections.emptyList(), Collections.singletonList() and Arrays.asList() are replaced with List.of()
  • Collections.emptyMap() and Collections.singletonMap() are replaced with Map.of()
  • Collections.singleton() is replaced with Set.of()

Some minor cleanups around use of enhanced switch blocks and conversion of classes to record classes.

@github-actions github-actions bot added triage PRs from the community tools labels Jul 22, 2025
Copy link
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 @sjhajharia for this patch, left some comments

@sjhajharia
Copy link
Contributor Author

sjhajharia commented Jul 22, 2025

Thank you @m1a2st and @Pankraz76 for the reviews. I have addressed them.
Requesting a re-review when possible.
TIA!

@sjhajharia sjhajharia requested review from m1a2st and Pankraz76 July 22, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-approved tools triage PRs from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants