Skip to content

Add @Generated annotation to generated code #11

Description

@novalis

Tools like https://github.com/google/error-prone use this to avoid running on generated code.

DKO's generated code fails the error-prone check because it is missing the @OverRide annotation for methods that override parent methods. Also, Errorprone flags some uses of == on Field objects, and maybe some other stuff.

Marking the code with javax.annotation.Generated will prevent this.

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