Skip to content

Conversation

@aldexis
Copy link
Contributor

@aldexis aldexis commented Dec 5, 2025

Recreated from palantir/gradle-baseline#3392

Before this PR

The Java compiler actually suppresses the deprecation warnings when within a deprecated method or class. This makes sense since deprecating using a deprecated api is a valid way to handle the deprecation if handling the deprecation requires doing an ABI break (e.g. by passing another argument).

After this PR

==COMMIT_MSG==
[DeprecatedApiUsage] Suppress within deprecated methods/classes
==COMMIT_MSG==

@changelog-app
Copy link

changelog-app bot commented Dec 5, 2025

Generate changelog in changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description

[DeprecatedApiUsage] Suppress within deprecated methods/classes

Check the box to generate changelog(s)

  • Generate changelog entry

@changelog-app
Copy link

changelog-app bot commented Dec 5, 2025

Successfully generated changelog entry!

Need to regenerate?

Simply interact with the changelog bot comment again to regenerate these entries.

🔄 Changelog entries were re-generated at Fri, 05 Dec 2025 16:14:59 UTC!


📋Changelog Preview

💡 Improvements

  • [DeprecatedApiUsage] Suppress within deprecated methods/classes (#18)

@aldexis aldexis changed the title [Error-prone] [DeprecatedApiUsage] Suppress within deprecated methods/classes [DeprecatedApiUsage] Suppress within deprecated methods/classes Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants