-
Notifications
You must be signed in to change notification settings - Fork 941
Replace Xlint deprecation check with custom errorprone check #8061
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
base: main
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| @SuppressWarnings("unchecked") | ||
| @SuppressWarnings({"unchecked", "deprecation"}) // deprecation: EXTENDED_ATTRIBUTES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's slightly more strict than javac here, but this does align with Intellij's warnings, so seems good
e79ae1d to
cfd48d7
Compare
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (27.27%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #8061 +/- ##
============================================
+ Coverage 90.18% 90.22% +0.03%
- Complexity 7591 7592 +1
============================================
Files 841 841
Lines 22911 22903 -8
Branches 2288 2288
============================================
+ Hits 20663 20664 +1
+ Misses 1531 1523 -8
+ Partials 717 716 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cfd48d7 to
6ebdc89
Compare
|
This requirement to avoid importing deprecating classes has annoyed me for a while. I'm supportive if you can get the build to pass on java 21, 25 😛 |
6ebdc89 to
86e4227
Compare
86e4227 to
afc0f01
Compare
Motivated by #8060 (well, that and the many PRs in the instrumentation repo where this has plagued me recently)
Context:
When compiling with
--release 8, javac's-Xlint:deprecationwarns on imports of deprecated classes (JDK-8032211). Since@SuppressWarningscannot suppress import-level warnings, this forced us to use fully-qualified class names as a workaround.