diff --git a/src/main/java/io/reactivex/Single.java b/src/main/java/io/reactivex/Single.java index 0551b575f3..20d1664b7a 100644 --- a/src/main/java/io/reactivex/Single.java +++ b/src/main/java/io/reactivex/Single.java @@ -873,6 +873,9 @@ public static Single timer(long delay, TimeUnit unit) { * @param unit the time unit of the delay * @param scheduler the scheduler where the single 0L will be emitted * @return the new Single instance + * @throws NullPointerException + * if unit is null, or + * if scheduler is null * @since 2.0 */ @CheckReturnValue @@ -1643,6 +1646,9 @@ public final Single delay(long time, TimeUnit unit) { * @param unit the time unit * @param scheduler the target scheduler to use for the non-blocking wait and emission * @return the new Single instance + * @throws NullPointerException + * if unit is null, or + * if scheduler is null * @since 2.0 */ @CheckReturnValue @@ -2285,6 +2291,7 @@ public final Flowable mergeWith(SingleSource other) { * the {@link Scheduler} to notify subscribers on * @return the source Single modified so that its subscribers are notified on the specified * {@link Scheduler} + * @throws NullPointerException if scheduler is null * @see ReactiveX operators documentation: ObserveOn * @see RxJava Threading Examples * @see #subscribeOn @@ -2919,6 +2926,10 @@ public final Single timeout(long timeout, TimeUnit unit, Scheduler scheduler, * @param unit the time unit * @param other the other SingleSource that gets subscribed to if the current Single times out * @return the new Single instance + * @throws NullPointerException + * if other is null, or + * if unit is null, or + * if scheduler is null * @since 2.0 */ @CheckReturnValue