Skip to content

Commit

Permalink
Fixing javadoc's code example of Observable#lift. (#6104)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcybo authored and akarnokd committed Jul 22, 2018
1 parent c5a42a2 commit 0155b69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/io/reactivex/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -9414,7 +9414,7 @@ public final Single<T> lastOrError() {
* &#64;Override
* public void onSubscribe(Disposable s) {
* if (upstream != null) {
* s.cancel();
* s.dispose();
* } else {
* upstream = s;
* downstream.onSubscribe(this);
Expand Down Expand Up @@ -9473,10 +9473,10 @@ public final Single<T> lastOrError() {
* // Such class may define additional parameters to be submitted to
* // the custom consumer type.
*
* final class CustomOperator&lt;T&gt; implements ObservableOperator&lt;String&gt; {
* final class CustomOperator&lt;T&gt; implements ObservableOperator&lt;String, T&gt; {
* &#64;Override
* public Observer&lt;? super String&gt; apply(Observer&lt;? super T&gt; upstream) {
* return new CustomObserver&lt;T&gt;(upstream);
* public Observer&lt;T&gt; apply(Observer&lt;? super String&gt; downstream) {
* return new CustomObserver&lt;T&gt;(downstream);
* }
* }
*
Expand Down

0 comments on commit 0155b69

Please sign in to comment.