Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Suppress deprecation warnings in generated code #5229

Merged
merged 2 commits into from
Jan 28, 2021

Conversation

pkoenig10
Copy link
Member

#5169 deprecated some constants that were used in generated classes. While these generated classes do include @SuppressWarnings("all"), that does not suppress javac lints such as -Xlint:deprecation. Those warnings need to be suppressed explicitly. For example, see jOOQ/jOOQ#2413.

I've verified locally that this resolves the compilation issues with generated code.

@changelog-app
Copy link

changelog-app bot commented Jan 27, 2021

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Deprecation warnings are now suppressed in generated code.

Check the box to generate changelog(s)

  • Generate changelog entry

@pkoenig10 pkoenig10 force-pushed the pkoenig10/deprecation branch from 2d7e7ce to 1015989 Compare January 27, 2021 17:40
@pkoenig10 pkoenig10 force-pushed the pkoenig10/deprecation branch from 4982ed2 to f7babea Compare January 27, 2021 18:13
@sudiksha27
Copy link
Contributor

sudiksha27 commented Jan 27, 2021

We should fix these constants instead of suppressing because we do intend to remove the deprecated code in future releases. @gmaretic thoughts?

Copy link
Contributor

@gmaretic gmaretic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. I think this is fine for now, and we should just make sure to remove it at the same time as we remove the deprecated constants

@gmaretic gmaretic merged commit 21337b9 into develop Jan 28, 2021
@delete-merged-branch delete-merged-branch bot deleted the pkoenig10/deprecation branch January 28, 2021 17:00
@svc-autorelease
Copy link
Collaborator

Released 0.289.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants