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

fix: fix Problems with javadoc parameters @exception and others #3035

Merged
merged 6 commits into from
Jun 26, 2019

Conversation

Egor18
Copy link
Contributor

@Egor18 Egor18 commented Jun 24, 2019

fix #3033
fix #3034

@@ -50,7 +50,7 @@
private String keyword;

boolean hasName() {
return this == PARAM || this == THROWS;
return this == PARAM || this == THROWS || this == EXCEPTION;
Copy link
Collaborator

Choose a reason for hiding this comment

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

we have code duplication here. What about refactoring to have a single implementation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I've just been writing about it. It would be useful for #3033 issue too.

@monperrus
Copy link
Collaborator

Thanks a lot for the refactoring. In Spoon, we are super careful with backward compatibility (unless it's in an "internal" package), what do you think of moving code of new spoon.javadoc.JavadocTagType to previous spoon.reflect.code.CtJavaDocTag.TagType?

@Egor18
Copy link
Contributor Author

Egor18 commented Jun 25, 2019

Sure, you're right.

@monperrus
Copy link
Collaborator

Cool, thanks!

@monperrus monperrus changed the title fix: Parameter for @exception tag WIP fix: Parameter for @exception tag Jun 25, 2019
@Egor18 Egor18 closed this Jun 25, 2019
@Egor18 Egor18 reopened this Jun 25, 2019
@Egor18 Egor18 changed the title WIP fix: Parameter for @exception tag fix: Problems with javadoc parameters Jun 26, 2019
@monperrus monperrus changed the title fix: Problems with javadoc parameters fix: fix Problems with javadoc parameters @exception and others Jun 26, 2019
@monperrus monperrus merged commit 3af0801 into INRIA:master Jun 26, 2019
@monperrus
Copy link
Collaborator

Thanks a lot Egor.

@monperrus monperrus mentioned this pull request Jul 25, 2019
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.

javadoc tag exception Javadoc Tags @serialField and @serialData
2 participants