Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address some https://errorprone.info/bugpattern/UnnecessaryJavacSuppressWarnings warnings. #7605

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

copybara-service[bot]
Copy link
Contributor

Address some https://errorprone.info/bugpattern/UnnecessaryJavacSuppressWarnings warnings.

(And push a few class-level suppressions down to individual methods.)

I reverted some of the changes that Error Prone suggested. I'm a little unclear on various things:

  • whether attempting to suppress removal warnings accomplishes anything under any compiler that we care about
  • whether extending a deprecated type produces a warning under any compiler that we care about
  • whether some deprecation warnings are showing up as "unnecessary" only because of builds against other sources of java.* classes that don't include the JDK's deprecations

Hopefully all the removals that I've kept in the CL are good.

RELNOTES=n/a

…essWarnings warnings.

(And push a few class-level suppressions down to individual methods.)

I reverted some of the changes that Error Prone suggested. I'm a little unclear on various things:
- whether attempting to suppress `removal` warnings accomplishes anything under any compiler that we care about
- whether extending a deprecated type produces a warning under any compiler that we care about
- whether some deprecation warnings are showing up as "unnecessary" only because of builds against other sources of `java.*` classes that don't include the JDK's deprecations

Hopefully all the removals that I've kept in the CL are good.

RELNOTES=n/a
PiperOrigin-RevId: 712957106
@copybara-service copybara-service bot merged commit 12bf71e into master Jan 7, 2025
@copybara-service copybara-service bot deleted the test_712887662 branch January 7, 2025 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant