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

refactor: fix javadoc #2300

Merged
merged 11 commits into from
Aug 15, 2018
Merged

refactor: fix javadoc #2300

merged 11 commits into from
Aug 15, 2018

Conversation

zielint0
Copy link
Contributor

@zielint0 zielint0 commented Jul 29, 2018

@surli
I corrected some Javadoc errors. Please review it deeply and suggest missing information. Thanks!

  • PatternParameterConfigurator.java -> I removed non-existing parameters. What is pep?
  • DefaultGenerator.java -> There is no class GeneratorImpl. Should it be a Generator? -> yes
  • PatternPrinter.java -> I removed non-existing parameters. What is parameterInfo?
  • ElementNode.java -> roleHandler changed to role. Check full doc of this method please.
  • SingleHandler.java -> I removed non-existing V. Added U. Should I add one more U?

I am ready to merge.

@zielint0 zielint0 changed the title WIP refactor: fix javadoc refactor: fix javadoc Jul 30, 2018
@@ -27,7 +27,7 @@
/**
* implementation of {@link RoleHandler}, which handles attributes of type <V>
Copy link
Collaborator

Choose a reason for hiding this comment

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

You missed a V here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It says that it handles attributes of type V but there is no type V defined in the class signature now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Class signature is: abstract class SingleHandler<T, U> extends AbstractRoleHandler<T, U, U>
so why 'V' should be documented?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It should not but currently the comment is the following:

[...] which handles attributes of type <V>

So V or &lt;V&gt; is currently documented and should not be.

Copy link
Contributor Author

@zielint0 zielint0 Aug 15, 2018

Choose a reason for hiding this comment

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

Ok, now it is not documented.

@surli
Copy link
Collaborator

surli commented Jul 31, 2018

  • PatternParameterConfigurator.java -> I removed non-existing parameters. What is pep?
  • PatternPrinter.java -> I removed non-existing parameters. What is parameterInfo?

@pvojtechovsky could you answer for those ones?

  • DefaultGenerator.java -> There is no class GeneratorImpl. Should it be a Generator?

yes

  • ElementNode.java -> roleHandler changed to role. Check full doc of this method please.
  • SingleHandler.java -> I removed non-existing V. Added U. Should I add one more U?

Not sure to understand the question: what do you mean about adding one more U?

@zielint0 zielint0 changed the title refactor: fix javadoc WIP refactor: fix javadoc Jul 31, 2018
@pvojtechovsky
Copy link
Collaborator

PatternParameterConfigurator.java -> I removed non-existing parameters. What is pep?

@param pep pair of parameter and element which has to be transformed

PatternPrinter.java -> I removed non-existing parameters. What is parameterInfo?

@param parameterInfo describes a to be printed pattern parameter

ElementNode.java -> roleHandler changed to role. Check full doc of this method please.

new comment is correct.

SingleHandler.java -> I removed non-existing V. Added U. Should I add one more U?

No, one U is enough.

@zielint0
Copy link
Contributor Author

zielint0 commented Aug 4, 2018

@pvojtechovsky
Thank you for all explanations.

@zielint0
Copy link
Contributor Author

zielint0 commented Aug 4, 2018

@surli
@pvojtechovsky
What is @param type in spoon/pattern/internal/PatternPrinter.java
generatePatternParameterElement(ParameterInfo parameterInfo, Class<T> type)?

@zielint0 zielint0 changed the title WIP refactor: fix javadoc refactor: fix javadoc Aug 6, 2018
@pvojtechovsky
Copy link
Collaborator

What is @param type in spoon/pattern/internal/PatternPrinter.java

it is a type/class of to be generated element

@zielint0
Copy link
Contributor Author

@pvojtechovsky
Thank you!

@surli surli merged commit e938d07 into INRIA:master Aug 15, 2018
@monperrus monperrus mentioned this pull request Sep 20, 2018
4 tasks
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