Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

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

@syoon2

Description

@syoon2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions