Skip to content

Commit 9ed5416

Browse files
authored
3.x: Improve wording of operators (#6843)
1 parent fb6dab6 commit 9ed5416

File tree

6 files changed

+337
-292
lines changed

6 files changed

+337
-292
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ public final Completable doOnEvent(@NonNull Consumer<@Nullable ? super Throwable
15961596
* </dl>
15971597
* @param onSubscribe the consumer called when a {@link CompletableObserver} subscribes.
15981598
* @param onError the consumer called when this emits an {@code onError} event
1599-
* @param onComplete the runnable called just before when the upstream {@code Completable} completes normally
1599+
* @param onComplete the runnable called just before when the current {@code Completable} completes normally
16001600
* @param onAfterTerminate the runnable called after this {@code Completable} completes normally
16011601
* @param onDispose the {@link Runnable} called when the downstream disposes the subscription
16021602
* @return the new {@code Completable} instance
@@ -1834,7 +1834,7 @@ public final Completable doFinally(@NonNull Action onFinally) {
18341834
* <p>
18351835
* Note also that it is not possible to stop the subscription phase in {@code lift()} as the {@code apply()} method
18361836
* requires a non-{@code null} {@code CompletableObserver} instance to be returned, which is then unconditionally subscribed to
1837-
* the upstream {@code Completable}. For example, if the operator decided there is no reason to subscribe to the
1837+
* the current {@code Completable}. For example, if the operator decided there is no reason to subscribe to the
18381838
* upstream source because of some optimization possibility or a failure to prepare the operator, it still has to
18391839
* return a {@code CompletableObserver} that should immediately dispose the upstream's {@link Disposable} in its
18401840
* {@code onSubscribe} method. Again, using a {@code CompletableTransformer} and extending the {@code Completable} is
@@ -2692,7 +2692,7 @@ public final <T> Flowable<T> toFlowable() {
26922692
*
26932693
* @param <T> the value type
26942694
* @return a {@code Maybe} that only calls {@code onComplete} or {@code onError}, based on which one is
2695-
* called by the source {@code Completable}.
2695+
* called by the current {@code Completable}.
26962696
*/
26972697
@CheckReturnValue
26982698
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)