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

WorkbenchServiceRegistry: Use generics instead of raw types #836

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

jukzi
Copy link
Contributor

@jukzi jukzi commented Jun 19, 2023

reduce ecj warnings

@github-actions
Copy link
Contributor

Test Results

     819 files  ±0       819 suites  ±0   47m 37s ⏱️ -13s
  5 667 tests ±0    5 524 ✔️ +1  143 💤 ±0  0  - 1 
18 147 runs  ±0  17 694 ✔️ +1  453 💤 ±0  0  - 1 

Results for commit 2075f00. ± Comparison against base commit 033ff0f.

@jukzi
Copy link
Contributor Author

jukzi commented Jun 20, 2023

CI unrelated random fail #80
org.eclipse.ui.tests.quickaccess.QuickAccessDialogTest.testPreviousChoicesAvailableForExtension(QuickAccessDialogTest.java:305)


static class ServiceFactoryHandle {
AbstractServiceFactory factory;
WeakHashMap serviceLocators = new WeakHashMap();
Copy link
Contributor

Choose a reason for hiding this comment

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

was there a good reason to use WeakHashMap instead of a Set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i don't know. As the Name says it is weak -i.e. it can be GCed. probably on purpose

Copy link
Contributor

Choose a reason for hiding this comment

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

And now it can't be GCed any more. Is that an issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

why could'nt it? its still a WeakHashMap under the hood

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah. Sure. I didn't see that. Sorry for the confusion.

@jukzi jukzi merged commit f45474e into eclipse-platform:master Jun 20, 2023
@jukzi jukzi deleted the WorkbenchServiceRegistry branch June 20, 2023 07:03
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.

3 participants