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

Update javadoc for Context.register #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

smirnoal
Copy link
Contributor

No description provided.

Comment on lines +52 to +53
* <p> Context maintains a weak reference to registered Resource, thus client code must maintain a strong reference
* to the Resource to guarantee `beforeCheckpoint` and `afterRestore` methods execution.
Copy link
Member

Choose a reason for hiding this comment

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

First of all, thank you for the PR!

Regarding the change, should it really be in the description of the abstract register method? For example, there can be an another Context implementaion that in contrast maintains strong links (A {@code Context} implementor is encouraged to respect properties of the global {@code Context}, but that is not mandatory). But I support any improvements for clarity. Does it make sense to make a reference for the global context properties (https://github.com/CRaC/org.crac/blob/master/src/main/java/org/crac/package-info.java#L68)(https://javadoc.io/doc/io.github.crac/org-crac/latest/index.html, Global Context Properties)) somehow?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Anton, I think you are right, documenting implementation details for an abstract method could look confusing. Let me think what would be the best avenue for this and I will get back to you. Thanks for your feedback 👍

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