Skip to content

Commit 0155b69

Browse files
lcyboakarnokd
authored andcommitted
Fixing javadoc's code example of Observable#lift. (#6104)
1 parent c5a42a2 commit 0155b69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9414,7 +9414,7 @@ public final Single<T> lastOrError() {
94149414
* &#64;Override
94159415
* public void onSubscribe(Disposable s) {
94169416
* if (upstream != null) {
9417-
* s.cancel();
9417+
* s.dispose();
94189418
* } else {
94199419
* upstream = s;
94209420
* downstream.onSubscribe(this);
@@ -9473,10 +9473,10 @@ public final Single<T> lastOrError() {
94739473
* // Such class may define additional parameters to be submitted to
94749474
* // the custom consumer type.
94759475
*
9476-
* final class CustomOperator&lt;T&gt; implements ObservableOperator&lt;String&gt; {
9476+
* final class CustomOperator&lt;T&gt; implements ObservableOperator&lt;String, T&gt; {
94779477
* &#64;Override
9478-
* public Observer&lt;? super String&gt; apply(Observer&lt;? super T&gt; upstream) {
9479-
* return new CustomObserver&lt;T&gt;(upstream);
9478+
* public Observer&lt;T&gt; apply(Observer&lt;? super String&gt; downstream) {
9479+
* return new CustomObserver&lt;T&gt;(downstream);
94809480
* }
94819481
* }
94829482
*

0 commit comments

Comments
 (0)