Skip to content
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

MINOR: Remove hamcrest from connect:runtime, raft and server-common #17394

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

mimaison
Copy link
Member

@mimaison mimaison commented Oct 7, 2024

In these modules we only used hamcrest for assertions that can easily be done with plain junit. Also removed hamcrest from metadata as it was not used in that module.

Hamcrest is still used in storage and streams.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

Copy link
Member

@mumrah mumrah left a comment

Choose a reason for hiding this comment

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

LGTM with one non-blocking question

Comment on lines 65 to 60
assertFalse(set.removeAll(Arrays.asList("d")));
assertTrue(set.retainAll(asList("a", "b", "c")));
Copy link
Member

Choose a reason for hiding this comment

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

Are these Arrays.asList -> asList changes needed? I think in most places we import Arrays rather than the static method import

@github-actions github-actions bot added the build Gradle build or GitHub Actions label Oct 8, 2024
@mimaison mimaison merged commit 5624bc7 into apache:trunk Oct 8, 2024
6 checks passed
@mimaison mimaison deleted the remove-hamcrest branch October 8, 2024 12:22
tedyu pushed a commit to tedyu/kafka that referenced this pull request Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Gradle build or GitHub Actions connect core Kafka Broker kraft
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants