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

Typify MultiValueMap and fix warnings in AutomaticRouter #320

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

ptziegler
Copy link
Contributor

The MultiValueMap used to be backed by a map with either a list or a single object as value.

This part has been adapted so that the map always contains a list of values. While this adds a small overhead when filling the map, it should in return reduce the overhead when calling the getter for values with only a single element.

Reduces the total amount of warnings by ~20.

@ptziegler ptziegler force-pushed the typify-mutlti-value-map branch from 53c4df9 to 894d353 Compare December 14, 2023 20:28
Copy link

github-actions bot commented Dec 14, 2023

Unit Test Results

     18 files       18 suites   32s ⏱️
   320 tests    318 ✔️   2 💤 0
1 920 runs  1 908 ✔️ 12 💤 0

Results for commit 03f78cc.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@azoitl azoitl left a comment

Choose a reason for hiding this comment

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

This is also a class I always wanted to tackle. Great that you did it.

The MultiValueMap used to be backed by a map with either a list or a
single object as value.

This part has been adapted so that the map always contains a list of
values. While this adds a small overhead when filling the map, it should
in return reduce the overhead when calling the getter for values with
only a single element.

Reduces the total amount of warnings by ~20.
@ptziegler ptziegler force-pushed the typify-mutlti-value-map branch from 894d353 to 03f78cc Compare December 15, 2023 05:08
@azoitl azoitl merged commit 98a6240 into eclipse-gef:master Dec 15, 2023
9 checks passed
@azoitl azoitl added this to the 3.19.0 milestone Dec 15, 2023
@ptziegler ptziegler deleted the typify-mutlti-value-map branch December 15, 2023 16:04
@ptziegler
Copy link
Contributor Author

#155

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