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

fix: contains/containsInAnyOrder overloading issue #380

Closed

Conversation

gokareless
Copy link

Fixes #301.

Caused:

  • Matcher instantiation depends of actual object type

Fix:

  • Adjusted API to work with arrays embedded in objects

The assumption is that whenever we get to the contains(T... items) with an array, the only possible way to get there with an array is by passing Object type reference (because of contains overloaded methods). Therefore we can safely add extra-check for embedded array

@tumbarumba tumbarumba deleted the branch hamcrest:v2.3-candidates June 30, 2024 03:39
@tumbarumba tumbarumba closed this Jun 30, 2024
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