-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
use bounded wildcards for errorHandler (fixes #5045) #5049
Conversation
Codecov Report@@ Coverage Diff @@
## 2.x #5049 +/- ##
============================================
+ Coverage 95.53% 95.65% +0.12%
- Complexity 5540 5547 +7
============================================
Files 612 612
Lines 39576 39576
Branches 5553 5553
============================================
+ Hits 37807 37855 +48
+ Misses 775 742 -33
+ Partials 994 979 -15
Continue to review full report at Codecov.
|
/cc @davidmoten |
yep that looks fine. I can do the others. |
@akarnokd do you want test coverage of the signature changes? |
Yes, make sure the contravariant consumer now compiles. |
@jschneider can you add unit tests for this please? |
I will add a test. Yes. |
Added the test |
Looks like this got a conflict due to changes to RxJavaPlugins by other PRs. Could you rebase this onto the head? |
f887652
to
d677bfc
Compare
yep. I am on it |
should be good now. |
@Test | ||
public void onErrorWithSuper() throws Exception { | ||
try { | ||
Consumer<? super Throwable> errorHandler = new Consumer<Throwable>() { |
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.
A better type would be Consumer<Object> errorHandler = ...
Adding bound wildcards for error handler - fixes #5045