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

Remove use of finalizer #7129

Merged
merged 2 commits into from Sep 28, 2018
Merged

Remove use of finalizer #7129

merged 2 commits into from Sep 28, 2018

Conversation

bjorncs
Copy link
Member

@bjorncs bjorncs commented Sep 27, 2018

No description provided.

@bjorncs bjorncs requested a review from geirst September 27, 2018 14:06
Copy link
Member

@geirst geirst left a comment

Choose a reason for hiding this comment

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

👍

@geirst
Copy link
Member

geirst commented Sep 27, 2018

@vekterli please review as well

Copy link
Member

@vekterli vekterli left a comment

Choose a reason for hiding this comment

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

👍 just a question

public void destroy() {
if (destroyed.getAndSet(true)) throw new RuntimeException("Already destroyed");
mirror.shutdown();
orb.transport().shutdown().join();
Copy link
Member

Choose a reason for hiding this comment

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

Should we invoke super's destroy() as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not necessary since the method is inherited from an interface.

@bjorncs bjorncs merged commit 157c8b7 into master Sep 28, 2018
@bjorncs bjorncs deleted the bjorncs/documentapi branch September 28, 2018 08:40
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

3 participants