Trelent-VSCode-Extension icon indicating copy to clipboard operation
Trelent-VSCode-Extension copied to clipboard

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

Open syoon2 opened this issue 3 years ago • 1 comments

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.

syoon2 avatar Sep 11 '22 17:09 syoon2

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

calum-bird avatar Sep 12 '22 04:09 calum-bird