Skip to content

Commit 5cbb607

Browse files
authored
3.x: Update marbles of onErrorResume(Next|With) + cleanup (#7051)
1 parent 7ed8e1a commit 5cbb607

File tree

8 files changed

+9
-10
lines changed

8 files changed

+9
-10
lines changed

src/main/java/io/reactivex/rxjava3/core/Flowable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12770,7 +12770,7 @@ public final Flowable<T> onErrorResumeNext(@NonNull Function<? super Throwable,
1277012770
* Resumes the flow with the given {@link Publisher} when the current {@code Flowable} fails instead of
1277112771
* signaling the error via {@code onError}.
1277212772
* <p>
12773-
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/onErrorResumeNext.v3.png" alt="">
12773+
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/onErrorResumeWith.v3.png" alt="">
1277412774
* <p>
1277512775
* By default, when a {@code Publisher} encounters an error that prevents it from emitting the expected item to
1277612776
* its {@link Subscriber}, the {@code Publisher} invokes its {@code Subscriber}'s {@code onError} method, and then quits

src/main/java/io/reactivex/rxjava3/core/Observable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10691,7 +10691,7 @@ public final Observable<T> onErrorResumeNext(@NonNull Function<? super Throwable
1069110691
* Resumes the flow with the given {@link ObservableSource} when the current {@code Observable} fails instead of
1069210692
* signaling the error via {@code onError}.
1069310693
* <p>
10694-
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/onErrorResumeNext.v3.png" alt="">
10694+
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/onErrorResumeWith.v3.png" alt="">
1069510695
* <p>
1069610696
* By default, when an {@code ObservableSource} encounters an error that prevents it from emitting the expected item to
1069710697
* its {@link Observer}, the {@code ObservableSource} invokes its {@code Observer}'s {@code onError} method, and then quits

src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableGroupByTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,7 @@ public void issue6974Part2Case2Loop() {
26672667

26682668
static void issue6974RunPart2NoEvict(int groupByBufferSize, int flatMapMaxConcurrency, int groups,
26692669
boolean notifyOnExplicitEviction) {
2670-
2670+
26712671
Flowable
26722672
.range(1, 500_000)
26732673
.map(i -> i % groups)

src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableGroupJoinTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public Integer apply(Integer rightValue) throws Throwable {
7979

8080
@Before
8181
public void before() {
82-
MockitoAnnotations.initMocks(this);
82+
MockitoAnnotations.openMocks(this);
8383
}
8484

8585
@Test

src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableJoinTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public Flowable<T> apply(Integer t1) {
5555

5656
@Before
5757
public void before() {
58-
MockitoAnnotations.initMocks(this);
58+
MockitoAnnotations.openMocks(this);
5959
}
6060

6161
@Test

src/test/java/io/reactivex/rxjava3/internal/operators/observable/ObservableGroupJoinTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public Integer apply(Integer rightValue) throws Throwable {
8181

8282
@Before
8383
public void before() {
84-
MockitoAnnotations.initMocks(this);
84+
MockitoAnnotations.openMocks(this);
8585
}
8686

8787
@Test

src/test/java/io/reactivex/rxjava3/internal/operators/observable/ObservableJoinTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public Observable<T> apply(Integer t1) {
5454

5555
@Before
5656
public void before() {
57-
MockitoAnnotations.initMocks(this);
57+
MockitoAnnotations.openMocks(this);
5858
}
5959

6060
@Test

src/test/java/io/reactivex/rxjava3/testsupport/SuppressUndeliverableRule.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@
3030
*/
3131
public class SuppressUndeliverableRule implements TestRule {
3232

33-
private static class SuppressUndeliverableRuleStatement extends Statement {
33+
static final class SuppressUndeliverableRuleStatement extends Statement {
3434
private Statement base;
3535

36-
private SuppressUndeliverableRuleStatement(){}
37-
public SuppressUndeliverableRuleStatement(Statement base) {
36+
SuppressUndeliverableRuleStatement(Statement base) {
3837
this.base = base;
3938
}
4039

0 commit comments

Comments
 (0)