Skip to content

Commit 98ca7ca

Browse files
Merge pull request #3358 from akarnokd/SingleOperators2x
2.x: Single class more operators + test from 1.x
2 parents 66f952a + 9e852f1 commit 98ca7ca

File tree

6 files changed

+1919
-135
lines changed

6 files changed

+1919
-135
lines changed

src/main/java/io/reactivex/NbpObservable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2676,7 +2676,7 @@ public void onNext(T value) {
26762676
}
26772677
@Override
26782678
public void onError(Throwable e) {
2679-
s.onFailure(e);
2679+
s.onError(e);
26802680
}
26812681
@Override
26822682
public void onComplete() {
@@ -2685,7 +2685,7 @@ public void onComplete() {
26852685
if (v != null) {
26862686
s.onSuccess(v);
26872687
} else {
2688-
s.onFailure(new NoSuchElementException());
2688+
s.onError(new NoSuchElementException());
26892689
}
26902690
}
26912691

0 commit comments

Comments
 (0)