Skip to content

Commit 8e9c935

Browse files
authored
2.x: cleanup of some javadoc errors and mentions of 'Nbp' (#4542)
1 parent 666b05c commit 8e9c935

File tree

109 files changed

+2706
-2699
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+2706
-2699
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ private static NullPointerException toNpe(Throwable ex) {
647647
* Returns a Completable instance which manages a resource along
648648
* with a custom Completable instance while the subscription is active.
649649
* <p>
650-
* This overload performs an eager unsubscription before the terminal event is emitted.
650+
* This overload disposes eagerly before the terminal event is emitted.
651651
* <dl>
652652
* <dt><b>Scheduler:</b></dt>
653653
* <dd>{@code using} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -670,7 +670,7 @@ public static <R> Completable using(Callable<R> resourceSupplier,
670670
* with a custom Completable instance while the subscription is active and performs eager or lazy
671671
* resource disposition.
672672
* <p>
673-
* If this overload performs a lazy unsubscription after the terminal event is emitted.
673+
* If this overload performs a lazy cancellation after the terminal event is emitted.
674674
* Exceptions thrown at this time will be delivered to RxJavaPlugins only.
675675
* <dl>
676676
* <dt><b>Scheduler:</b></dt>
@@ -1797,7 +1797,7 @@ public final <T> Single<T> toSingleDefault(final T completionValue) {
17971797
@SchedulerSupport(SchedulerSupport.CUSTOM)
17981798
public final Completable unsubscribeOn(final Scheduler scheduler) {
17991799
ObjectHelper.requireNonNull(scheduler, "scheduler is null");
1800-
return RxJavaPlugins.onAssembly(new CompletableUnsubscribeOn(this, scheduler));
1800+
return RxJavaPlugins.onAssembly(new CompletableDisposeOn(this, scheduler));
18011801
}
18021802
// -------------------------------------------------------------------------
18031803
// Fluent test support, super handy and reduces test preparation boilerplate

src/main/java/io/reactivex/CompletableEmitter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ public interface CompletableEmitter {
3939

4040
/**
4141
* Sets a Disposable on this emitter; any previous Disposable
42-
* or Cancellation will be unsubscribed/cancelled.
42+
* or Cancellation will be disposed/cancelled.
4343
* @param d the disposable, null is allowed
4444
*/
4545
void setDisposable(Disposable d);
4646

4747
/**
4848
* Sets a Cancellable on this emitter; any previous Disposable
49-
* or Cancellation will be unsubscribed/cancelled.
49+
* or Cancellation will be disposed/cancelled.
5050
* @param c the cancellable resource, null is allowed
5151
*/
5252
void setCancellable(Cancellable c);

src/main/java/io/reactivex/Flowable.java

+50-50
Large diffs are not rendered by default.

src/main/java/io/reactivex/Maybe.java

+14-13
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public static <T> Flowable<T> concat(
204204
* <dt><b>Backpressure:</b><dt>
205205
* <dd>The returned {@code Flowable} honors the backpressure of the downstream consumer and
206206
* expects the {@code Publisher} to honor backpressure as well. If the sources {@code Publisher}
207-
* violates this, a {@code MissingBackpressurException} is signalled.</dd>
207+
* violates this, a {@link io.reactivex.exceptions.MissingBackpressureException} is signalled.</dd>
208208
* <dt><b>Scheduler:</b></dt>
209209
* <dd>{@code concat} does not operate by default on a particular {@link Scheduler}.</dd>
210210
* </dl>
@@ -225,7 +225,7 @@ public static <T> Flowable<T> concat(Publisher<? extends MaybeSource<? extends T
225225
* <dt><b>Backpressure:</b><dt>
226226
* <dd>The returned {@code Flowable} honors the backpressure of the downstream consumer and
227227
* expects the {@code Publisher} to honor backpressure as well. If the sources {@code Publisher}
228-
* violates this, a {@code MissingBackpressurException} is signalled.</dd>
228+
* violates this, a {@link io.reactivex.exceptions.MissingBackpressureException} is signalled.</dd>
229229
* <dt><b>Scheduler:</b></dt>
230230
* <dd>{@code concat} does not operate by default on a particular {@link Scheduler}.</dd>
231231
* </dl>
@@ -399,7 +399,7 @@ public static <T> Flowable<T> concatEager(Iterable<? extends MaybeSource<? exten
399399
* <dt><b>Backpressure:</b></dt>
400400
* <dd>Backpressure is honored towards the downstream and the outer Publisher is
401401
* expected to support backpressure. Violating this assumption, the operator will
402-
* signal {@code MissingBackpressureException}.</dd>
402+
* signal {@link io.reactivex.exceptions.MissingBackpressureException}.</dd>
403403
* <dt><b>Scheduler:</b></dt>
404404
* <dd>This method does not operate by default on a particular {@link Scheduler}.</dd>
405405
* </dl>
@@ -1293,7 +1293,8 @@ public static <T> Maybe<T> unsafeCreate(MaybeSource<T> onSubscribe) {
12931293
}
12941294

12951295
/**
1296-
* Constructs a Maybe that creates a dependent resource object which is disposed of on unsubscription.
1296+
* Constructs a Maybe that creates a dependent resource object which is disposed of when the
1297+
* upstream terminates or the downstream calls dispose().
12971298
* <p>
12981299
* <img width="640" height="400" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/using.png" alt="">
12991300
* <dl>
@@ -1321,8 +1322,8 @@ public static <T, D> Maybe<T> using(Callable<? extends D> resourceSupplier,
13211322

13221323
/**
13231324
* Constructs a Maybe that creates a dependent resource object which is disposed of just before
1324-
* termination if you have set {@code disposeEagerly} to {@code true} and unsubscription does not occur
1325-
* before termination. Otherwise resource disposal will occur on unsubscription. Eager disposal is
1325+
* termination if you have set {@code disposeEagerly} to {@code true} and a downstream dispose() does not occur
1326+
* before termination. Otherwise resource disposal will occur on call to dispose(). Eager disposal is
13261327
* particularly appropriate for a synchronous Maybe that reuses resources. {@code disposeAction} will
13271328
* only be called once per subscription.
13281329
* <p>
@@ -1341,7 +1342,7 @@ public static <T, D> Maybe<T> using(Callable<? extends D> resourceSupplier,
13411342
* @param resourceDisposer
13421343
* the function that will dispose of the resource
13431344
* @param eager
1344-
* if {@code true} then disposal will happen either on unsubscription or just before emission of
1345+
* if {@code true} then disposal will happen either on a dispose() call or just before emission of
13451346
* a terminal event ({@code onComplete} or {@code onError}).
13461347
* @return the Maybe whose lifetime controls the lifetime of the dependent resource object
13471348
* @see <a href="http://reactivex.io/documentation/operators/using.html">ReactiveX operators documentation: Using</a>
@@ -3003,13 +3004,13 @@ public final Maybe<T> onExceptionResumeNext(final MaybeSource<? extends T> next)
30033004
}
30043005
/**
30053006
* Nulls out references to the upstream producer and downstream MaybeObserver if
3006-
* the sequence is terminated or downstream unsubscribes.
3007+
* the sequence is terminated or downstream calls dispose().
30073008
* <dl>
30083009
* <dt><b>Scheduler:</b></dt>
30093010
* <dd>{@code onTerminateDetach} does not operate by default on a particular {@link Scheduler}.</dd>
30103011
* </dl>
30113012
* @return a Maybe which out references to the upstream producer and downstream MaybeObserver if
3012-
* the sequence is terminated or downstream unsubscribes
3013+
* the sequence is terminated or downstream calls dispose()
30133014
*/
30143015
@SchedulerSupport(SchedulerSupport.NONE)
30153016
public final Maybe<T> onTerminateDetach() {
@@ -3649,7 +3650,7 @@ public final Maybe<T> timeout(long timeout, TimeUnit timeUnit, Scheduler schedul
36493650
*/
36503651
@SchedulerSupport(SchedulerSupport.NONE)
36513652
public final <U> Maybe<T> timeout(MaybeSource<U> timeoutIndicator) {
3652-
ObjectHelper.requireNonNull(timeoutIndicator, "timoutIndicator is null");
3653+
ObjectHelper.requireNonNull(timeoutIndicator, "timeoutIndicator is null");
36533654
return RxJavaPlugins.onAssembly(new MaybeTimeoutMaybe<T, U>(this, timeoutIndicator, null));
36543655
}
36553656

@@ -3669,7 +3670,7 @@ public final <U> Maybe<T> timeout(MaybeSource<U> timeoutIndicator) {
36693670
*/
36703671
@SchedulerSupport(SchedulerSupport.NONE)
36713672
public final <U> Maybe<T> timeout(MaybeSource<U> timeoutIndicator, MaybeSource<? extends T> fallback) {
3672-
ObjectHelper.requireNonNull(timeoutIndicator, "timoutIndicator is null");
3673+
ObjectHelper.requireNonNull(timeoutIndicator, "timeoutIndicator is null");
36733674
ObjectHelper.requireNonNull(fallback, "fallback is null");
36743675
return RxJavaPlugins.onAssembly(new MaybeTimeoutMaybe<T, U>(this, timeoutIndicator, fallback));
36753676
}
@@ -3692,7 +3693,7 @@ public final <U> Maybe<T> timeout(MaybeSource<U> timeoutIndicator, MaybeSource<?
36923693
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
36933694
@SchedulerSupport(SchedulerSupport.NONE)
36943695
public final <U> Maybe<T> timeout(Publisher<U> timeoutIndicator) {
3695-
ObjectHelper.requireNonNull(timeoutIndicator, "timoutIndicator is null");
3696+
ObjectHelper.requireNonNull(timeoutIndicator, "timeoutIndicator is null");
36963697
return RxJavaPlugins.onAssembly(new MaybeTimeoutPublisher<T, U>(this, timeoutIndicator, null));
36973698
}
36983699

@@ -3716,7 +3717,7 @@ public final <U> Maybe<T> timeout(Publisher<U> timeoutIndicator) {
37163717
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
37173718
@SchedulerSupport(SchedulerSupport.NONE)
37183719
public final <U> Maybe<T> timeout(Publisher<U> timeoutIndicator, MaybeSource<? extends T> fallback) {
3719-
ObjectHelper.requireNonNull(timeoutIndicator, "timoutIndicator is null");
3720+
ObjectHelper.requireNonNull(timeoutIndicator, "timeoutIndicator is null");
37203721
ObjectHelper.requireNonNull(fallback, "fallback is null");
37213722
return RxJavaPlugins.onAssembly(new MaybeTimeoutPublisher<T, U>(this, timeoutIndicator, fallback));
37223723
}

0 commit comments

Comments
 (0)