Skip to content

[Bug]: @EqualsAndHaschode without callsuper #12665

@davidszkl

Description

@davidszkl

Description

When generating a child class with lombok annotations it generated @EqualsAndHaschode annotation but without callsuper=true, which leads to the following warning at build time:

warning: Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.

Swagger Codegen Version

3.0.75

Language / Generator

Java, SpringBoot

Expected Behavior

There should be an option to provide the value for callsuper and maybe a default value of true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions