-
Notifications
You must be signed in to change notification settings - Fork 193
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
Conversation
reduce ecj warnings
CI unrelated random fail #80 |
|
||
static class ServiceFactoryHandle { | ||
AbstractServiceFactory factory; | ||
WeakHashMap serviceLocators = new WeakHashMap(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
reduce ecj warnings