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

Allows NaturalOrdering for Comparable type hierarchies #1496

Merged

Conversation

wjglerum
Copy link
Contributor

@wjglerum wjglerum commented Dec 1, 2023

Tried to write some of our code to use the @Value.NaturalOrder annotation for comparable wrapped types and it failed. A simple fix was to use an upper bound wildcard in the generated code. Also added a testcase with an example.

@wjglerum
Copy link
Contributor Author

wjglerum commented Dec 1, 2023

@elucash what do you think?

@wjglerum
Copy link
Contributor Author

wjglerum commented Feb 9, 2024

@elucash anything else I should do to get this PR merged?

@elucash
Copy link
Member

elucash commented Feb 9, 2024

sorry for the very long delay. It was hard for me to understand this PR from the first look, seems like it's only allowing proper bounds for collections. Thank you for the PR, merging

@elucash elucash merged commit 021ce55 into immutables:master Feb 9, 2024
16 checks passed
@wjglerum wjglerum deleted the natural-ordering-comparable-hierarchy branch February 10, 2024 08:40
@wjglerum
Copy link
Contributor Author

@elucash thanks again! When can we expect a new minor/patch release? Would you consider doing a small one this week with these small patches?

@elucash
Copy link
Member

elucash commented Feb 18, 2024

version 2.10.1 released

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.

None yet

2 participants