@@ -5507,9 +5507,9 @@ public final Observable<T> distinctUntilChanged(Func2<? super T, ? super T, Bool
55075507 public final Observable<T> doOnCompleted(final Action0 onCompleted) {
55085508 Action1<T> onNext = Actions.empty();
55095509 Action1<Throwable> onError = Actions.empty();
5510- Observer<T> observer = new ActionSubscriber <T>(onNext, onError, onCompleted);
5510+ Observer<T> observer = new ActionObserver <T>(onNext, onError, onCompleted);
55115511
5512- return lift (new OperatorDoOnEach <T>(observer));
5512+ return create (new OnSubscribeDoOnEach <T>(this, observer));
55135513 }
55145514
55155515 /**
@@ -5531,8 +5531,7 @@ public final Observable<T> doOnCompleted(final Action0 onCompleted) {
55315531 */
55325532 public final Observable<T> doOnEach(final Action1<Notification<? super T>> onNotification) {
55335533 Observer<T> observer = new ActionNotificationObserver<T>(onNotification);
5534-
5535- return lift(new OperatorDoOnEach<T>(observer));
5534+ return create(new OnSubscribeDoOnEach<T>(this, observer));
55365535 }
55375536
55385537 /**
@@ -5559,7 +5558,7 @@ public final Observable<T> doOnEach(final Action1<Notification<? super T>> onNot
55595558 * @see <a href="http://reactivex.io/documentation/operators/do.html">ReactiveX operators documentation: Do</a>
55605559 */
55615560 public final Observable<T> doOnEach(Observer<? super T> observer) {
5562- return lift (new OperatorDoOnEach <T>(observer));
5561+ return create (new OnSubscribeDoOnEach <T>(this, observer));
55635562 }
55645563
55655564 /**
@@ -5585,9 +5584,9 @@ public final Observable<T> doOnEach(Observer<? super T> observer) {
55855584 public final Observable<T> doOnError(final Action1<Throwable> onError) {
55865585 Action1<T> onNext = Actions.empty();
55875586 Action0 onCompleted = Actions.empty();
5588- Observer<T> observer = new ActionSubscriber <T>(onNext, onError, onCompleted);
5587+ Observer<T> observer = new ActionObserver <T>(onNext, onError, onCompleted);
55895588
5590- return lift (new OperatorDoOnEach <T>(observer));
5589+ return create (new OnSubscribeDoOnEach <T>(this, observer));
55915590 }
55925591
55935592 /**
@@ -5610,9 +5609,9 @@ public final Observable<T> doOnError(final Action1<Throwable> onError) {
56105609 public final Observable<T> doOnNext(final Action1<? super T> onNext) {
56115610 Action1<Throwable> onError = Actions.empty();
56125611 Action0 onCompleted = Actions.empty();
5613- Observer<T> observer = new ActionSubscriber <T>(onNext, onError, onCompleted);
5612+ Observer<T> observer = new ActionObserver <T>(onNext, onError, onCompleted);
56145613
5615- return lift (new OperatorDoOnEach <T>(observer));
5614+ return create (new OnSubscribeDoOnEach <T>(this, observer));
56165615 }
56175616
56185617 /**
@@ -5693,9 +5692,9 @@ public final Observable<T> doOnTerminate(final Action0 onTerminate) {
56935692 Action1<T> onNext = Actions.empty();
56945693 Action1<Throwable> onError = Actions.toAction1(onTerminate);
56955694
5696- Observer<T> observer = new ActionSubscriber <T>(onNext, onError, onTerminate);
5695+ Observer<T> observer = new ActionObserver <T>(onNext, onError, onTerminate);
56975696
5698- return lift (new OperatorDoOnEach <T>(observer));
5697+ return create (new OnSubscribeDoOnEach <T>(this, observer));
56995698 }
57005699
57015700 /**
0 commit comments