Skip to content

add @SuppressWarnings to generated client classes #1369

@ameerabdallah

Description

@ameerabdallah

Tell us the extension to which you'd like to add the feature.

Client

What kind of feature would you like to add?

Suppress warnings for generated classes

Proposal(s):

Classes generated throw a bunch of warnings that require retooling in dev environments to ignore. I don't believe anything would be lost by suppressing warnings for the generated classes.

I can go ahead and do this myself. Just want the go ahead to put out a PR for it

Alternative(s):

No response

Additional info:

There is precedence to doing so as well. jOOQ for instance does this with autogenerated classes. They add @SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }).

Community Notes

  • Please vote by adding a 👍 reaction to the feature to help us prioritize.
  • If you want to work on this feature, please leave a comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions