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

Java: Generated Javadoc Always Includes @return Tag Even for void Return Type #6

Open
syoon2 opened this issue Sep 11, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@syoon2
Copy link

syoon2 commented Sep 11, 2022

Description

As per Oracle's guideline, @return tag should be omitted for methods that return void. However, Trelent generates @return even if method returns void.

Steps to repro

public class TestClass {

    public void nothing() {
        System.out.println();
    }
}
  1. Create TestClass.java as shown above.
  2. Alt+D nothing()
  3. Observe generated Javadoc containing @return tag.
@calum-bird calum-bird added the bug Something isn't working label Sep 12, 2022
@calum-bird
Copy link
Member

Thx! Fix in the works, should be live EOW.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants