Skip to content

[generator] Remove Javadoc from the methods of implementation classes #270

@Kobee1203

Description

@Kobee1203

Currently, the generator adds comments to interfaces and classes that implement interfaces.

As explained in Oracle's official documentation (https://docs.oracle.com/en/java/javase/17/docs/specs/javadoc/doc-comment-spec.html):

Comment inheritance occurs in all possible cases of inheritance from classes and interfaces:

  • When a method in a class overrides a method in a superclass
  • When a method in an interface overrides a method in a superinterface
  • When a method in a class implements a method in an interface

So there is no need to add Javadoc documentation to the methods of an implementation class, since it already inherits the documentation present on the interface, which is the same documentation.

We keep the Javadoc on the class itself since there is no inheritance possible.

This change should reduce the size of the generated Java files and speed up the generation process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions