-
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
2.x: Fix wrong comments in Functions.java “Function3” -> “BiFunction” #5230
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.x #5230 +/- ##
============================================
- Coverage 96.02% 96.01% -0.01%
- Complexity 5745 5752 +7
============================================
Files 628 628
Lines 41074 41074
Branches 5697 5697
============================================
- Hits 39443 39439 -4
+ Misses 655 651 -4
- Partials 976 984 +8
Continue to review full report at Codecov.
|
I also added fail test case toFunction about Functions.java |
Fix interface naming
@@ -24,7 +24,7 @@ | |||
import io.reactivex.schedulers.Timed; | |||
|
|||
/** | |||
* Utility methods to convert the Function3..Function9 instances to Function of Object array. | |||
* Utility methods to convert the BiFunction..Function9 instances to Function of Object array. |
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.
Actually, BiFunction, Function3..Function9
would be better.
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.
I agree.
@@ -169,6 +169,54 @@ public Integer apply(Integer t1, Integer t2, Integer t3, Integer t4, Integer t5, | |||
}).apply(new Object[20]); | |||
} | |||
|
|||
@Test(expected = NullPointerException.class) | |||
public void biFunctionFail() throws Exception { |
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.
Please add @SuppressWarnings({"unchecked", "rawtypes"})
to all these new methods.
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.
Thank you for comment.
I'm using this library in my company(KakaoBank in Korea) and interested in this library.. so I read whole code these days. I feel really thanks for all people who make awesome library and I just wanted to contribute this library.