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

Make relations ordered #13

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Make relations ordered #13

merged 1 commit into from
Mar 30, 2023

Conversation

Gabriel-Darbord
Copy link
Member

All relations implemented with MultivalueSet are currently unordered.
The lack of order can be detrimental when analyzing parameterized types or parameters for example.

This fix suggests using a LinkedHashSet instead of a HashSet for the internal collection used by MultivalueSet, as this data structure keeps track of the insertion order.

@badetitou badetitou merged commit a9d9f1f into master Mar 30, 2023
@badetitou badetitou deleted the ordered-relations branch March 30, 2023 13:53
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