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

JavaDoc attached at token level when preceded by annotations #8

Open
simonepri opened this issue Jan 19, 2020 · 1 comment
Open

JavaDoc attached at token level when preceded by annotations #8

simonepri opened this issue Jan 19, 2020 · 1 comment
Assignees

Comments

@simonepri
Copy link

simonepri commented Jan 19, 2020

Problem

When an annotation proceeds a method javadoc, the javadoc is not attached to the method but to the next token instead.

Code to reproduce

public class Test {
  @Deprecated
  /**
   * Method Javadoc
   * @param s variable desc
   */
  Test(String s) {}
}

Test2 java (1)

Expected behaviour

I would expect the JavaDoc to be attached to the method as in the following code

public class Test {
  /**
   * Method Javadoc
   * @param s variable desc
   */
  @Deprecated
  Test(String s) {
  }
}

Test2 java

@simonepri simonepri changed the title JavaDoc attached to public when preceded by annotations JavaDoc attached at token level when preceded by annotations Jan 19, 2020
@acr31 acr31 self-assigned this Jan 20, 2020
@acr31
Copy link
Owner

acr31 commented Jan 20, 2020

Thanks for the clear report. I'll fix this.

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

No branches or pull requests

2 participants