Skip to content

[MINOR] Code Cleanup (Clients Module)#16049

Merged
chia7712 merged 6 commits intoapache:trunkfrom
sjhajharia:clients-code-cleanup
Jun 4, 2024
Merged

[MINOR] Code Cleanup (Clients Module)#16049
chia7712 merged 6 commits intoapache:trunkfrom
sjhajharia:clients-code-cleanup

Conversation

@sjhajharia
Copy link
Copy Markdown
Collaborator

What

Code Cleanup in Clients Module

Changes

Some common changes include

  • Replace the Arrays.asList() with Collections.singletonList() wherever possible
  • Cleaning up some if-else blocks
  • Replacing some instances of String.builder() with String operations

Thanks!

@chia7712
Copy link
Copy Markdown
Member

@sjhajharia Could you please rebase code to include #16044? It fixes a lot of failed tests :)

@sjhajharia
Copy link
Copy Markdown
Collaborator Author

Thanks for pointing out @chia7712
I rebased the PR!

@chia7712
Copy link
Copy Markdown
Member

I rebased the PR!

I guess other PRs will encounter same failed tests, so please rebase code for others too, thanks!

Copy link
Copy Markdown
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@sjhajharia thanks for updated PR

Comment thread clients/src/main/java/org/apache/kafka/common/utils/Utils.java Outdated
Copy link
Copy Markdown
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

LGTM

@chia7712 chia7712 merged commit e4ff540 into apache:trunk Jun 4, 2024
@sjhajharia sjhajharia deleted the clients-code-cleanup branch June 4, 2024 11:11
TaiJuWu pushed a commit to TaiJuWu/kafka that referenced this pull request Jun 8, 2024
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
gongxuanzhang pushed a commit to gongxuanzhang/kafka that referenced this pull request Jun 12, 2024
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
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