Skip to content

Commit 14bebc5

Browse files
ggikkoakarnokd
authored andcommitted
Add NullPointerException comment (#5578)
1 parent ad8cd0c commit 14bebc5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/java/io/reactivex/Single.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,9 @@ public static Single<Long> timer(long delay, TimeUnit unit) {
873873
* @param unit the time unit of the delay
874874
* @param scheduler the scheduler where the single 0L will be emitted
875875
* @return the new Single instance
876+
* @throws NullPointerException
877+
* if unit is null, or
878+
* if scheduler is null
876879
* @since 2.0
877880
*/
878881
@CheckReturnValue
@@ -1643,6 +1646,9 @@ public final Single<T> delay(long time, TimeUnit unit) {
16431646
* @param unit the time unit
16441647
* @param scheduler the target scheduler to use for the non-blocking wait and emission
16451648
* @return the new Single instance
1649+
* @throws NullPointerException
1650+
* if unit is null, or
1651+
* if scheduler is null
16461652
* @since 2.0
16471653
*/
16481654
@CheckReturnValue
@@ -2285,6 +2291,7 @@ public final Flowable<T> mergeWith(SingleSource<? extends T> other) {
22852291
* the {@link Scheduler} to notify subscribers on
22862292
* @return the source Single modified so that its subscribers are notified on the specified
22872293
* {@link Scheduler}
2294+
* @throws NullPointerException if scheduler is null
22882295
* @see <a href="http://reactivex.io/documentation/operators/observeon.html">ReactiveX operators documentation: ObserveOn</a>
22892296
* @see <a href="http://www.grahamlea.com/2014/07/rxjava-threading-examples/">RxJava Threading Examples</a>
22902297
* @see #subscribeOn
@@ -2919,6 +2926,10 @@ public final Single<T> timeout(long timeout, TimeUnit unit, Scheduler scheduler,
29192926
* @param unit the time unit
29202927
* @param other the other SingleSource that gets subscribed to if the current Single times out
29212928
* @return the new Single instance
2929+
* @throws NullPointerException
2930+
* if other is null, or
2931+
* if unit is null, or
2932+
* if scheduler is null
29222933
* @since 2.0
29232934
*/
29242935
@CheckReturnValue

0 commit comments

Comments
 (0)