Skip to content

Commit

Permalink
Add NullPointerException comment (#5578)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggikko authored and akarnokd committed Aug 30, 2017
1 parent ad8cd0c commit 14bebc5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/io/reactivex/Single.java
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,9 @@ public static Single<Long> 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
Expand Down Expand Up @@ -1643,6 +1646,9 @@ public final Single<T> 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
Expand Down Expand Up @@ -2285,6 +2291,7 @@ public final Flowable<T> mergeWith(SingleSource<? extends T> 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 <a href="http://reactivex.io/documentation/operators/observeon.html">ReactiveX operators documentation: ObserveOn</a>
* @see <a href="http://www.grahamlea.com/2014/07/rxjava-threading-examples/">RxJava Threading Examples</a>
* @see #subscribeOn
Expand Down Expand Up @@ -2919,6 +2926,10 @@ public final Single<T> 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
Expand Down

0 comments on commit 14bebc5

Please sign in to comment.