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

2.x: Fix wrong comments in Functions.java “Function3” -> “BiFunction” #5230

Merged
merged 5 commits into from Mar 26, 2017

Conversation

ggikko
Copy link
Contributor

@ggikko ggikko commented Mar 26, 2017

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.

@akarnokd akarnokd added this to the 2.0 backlog milestone Mar 26, 2017
@codecov
Copy link

codecov bot commented Mar 26, 2017

Codecov Report

Merging #5230 into 2.x will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ Complexity Δ
...ava/io/reactivex/internal/functions/Functions.java 99.11% <ø> (ø) 35 <0> (ø) ⬇️
...ernal/operators/flowable/FlowableFlatMapMaybe.java 91.54% <0%> (-6.47%) 2% <0%> (ø)
.../operators/completable/CompletableConcatArray.java 93.75% <0%> (-6.25%) 2% <0%> (ø)
.../internal/operators/maybe/MaybeTakeUntilMaybe.java 93.87% <0%> (-6.13%) 2% <0%> (ø)
...main/java/io/reactivex/subjects/SingleSubject.java 95.23% <0%> (-4.77%) 38% <0%> (-2%)
...rnal/subscriptions/DeferredScalarSubscription.java 93.84% <0%> (-4.62%) 27% <0%> (-1%)
...ernal/operators/maybe/MaybeTakeUntilPublisher.java 96% <0%> (-4%) 2% <0%> (ø)
...l/operators/observable/ObservableFlatMapMaybe.java 91.5% <0%> (-3.93%) 2% <0%> (ø)
...ors/observable/ObservableSampleWithObservable.java 93.97% <0%> (-3.62%) 3% <0%> (ø)
...ternal/operators/observable/ObservablePublish.java 92.1% <0%> (-3.51%) 10% <0%> (ø)
... and 35 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd258e3...1524557. Read the comment docs.

@ggikko
Copy link
Contributor Author

ggikko commented Mar 26, 2017

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.
Copy link
Member

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.

Copy link
Contributor Author

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 {
Copy link
Member

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.

Copy link
Contributor Author

@ggikko ggikko Mar 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for comment.

@akarnokd akarnokd changed the title Fix wrong comments in Functions.java “Function3” -> “BiFunction” 2.x: Fix wrong comments in Functions.java “Function3” -> “BiFunction” Mar 26, 2017
@akarnokd akarnokd merged commit 7748fd5 into ReactiveX:2.x Mar 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants