Support for extra Futures classes#909
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #909 +/- ##
============================================
+ Coverage 86.98% 87.07% +0.09%
- Complexity 1959 1989 +30
============================================
Files 77 77
Lines 6330 6423 +93
Branches 1223 1244 +21
============================================
+ Hits 5506 5593 +87
- Misses 420 422 +2
- Partials 404 408 +4 ☔ View full report in Codecov by Sentry. |
yuxincs
left a comment
There was a problem hiding this comment.
LGTM for allowing more customizations of handling Future classes.
|
Could https://github.com/uber/NullAway/wiki/Configuration be updated? as 0.10.23 was released with this change |
|
Thanks for the reminder! I've added docs here: https://github.com/uber/NullAway/wiki/Configuration#extra-futures-classes |
|
Thanks, just published version 2.0.0 of the plugin that adds support for this in the DSL (major version bump due to removing support for Gradle 5.2 → 6.7) |
This allows for a list of classes to be passed in via a command-line argument
-XepOpt:NullAway:ExtraFuturesClasses. Such classes will be treated equivalently to built-in Guava Futures classes via theFluentFutureHandler. This is a follow-up to #771.