Skip to content

Commit f2351e2

Browse files
DmitriyZaitsevakarnokd
authored andcommitted
2.x: Fix exceptions in javaDoc (#4793)
* 2.x: correct exceptions in Flowable javaDoc * 2.x: correct exceptions in Observable javaDoc * 2.x: correct exceptions in Maybe javaDoc * 2.x: correct exceptions in Single javaDoc
1 parent ff282b9 commit f2351e2

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8598,7 +8598,7 @@ public final <R> Flowable<R> flatMapSingle(Function<? super T, ? extends SingleS
85988598
* {@link Consumer} to execute for each item.
85998599
* @return
86008600
* a Disposable that allows cancelling an asynchronous sequence
8601-
* @throws IllegalArgumentException
8601+
* @throws NullPointerException
86028602
* if {@code onNext} is null
86038603
* @throws RuntimeException
86048604
* if the Publisher calls {@code onError}
@@ -12070,7 +12070,7 @@ public final Disposable subscribe(Consumer<? super T> onNext) {
1207012070
* @return a {@link Disposable} reference with which the caller can stop receiving items before
1207112071
* the Publisher has finished sending them
1207212072
* @see <a href="http://reactivex.io/documentation/operators/subscribe.html">ReactiveX operators documentation: Subscribe</a>
12073-
* @throws IllegalArgumentException
12073+
* @throws NullPointerException
1207412074
* if {@code onNext} is null, or
1207512075
* if {@code onError} is null
1207612076
*/
@@ -12101,7 +12101,7 @@ public final Disposable subscribe(Consumer<? super T> onNext, Consumer<? super T
1210112101
* Publisher
1210212102
* @return a {@link Disposable} reference with which the caller can stop receiving items before
1210312103
* the Publisher has finished sending them
12104-
* @throws IllegalArgumentException
12104+
* @throws NullPointerException
1210512105
* if {@code onNext} is null, or
1210612106
* if {@code onError} is null, or
1210712107
* if {@code onComplete} is null
@@ -12137,7 +12137,7 @@ public final Disposable subscribe(Consumer<? super T> onNext, Consumer<? super T
1213712137
* the {@code Consumer} that receives the upstream's Subscription
1213812138
* @return a {@link Disposable} reference with which the caller can stop receiving items before
1213912139
* the Publisher has finished sending them
12140-
* @throws IllegalArgumentException
12140+
* @throws NullPointerException
1214112141
* if {@code onNext} is null, or
1214212142
* if {@code onError} is null, or
1214312143
* if {@code onComplete} is null

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3445,7 +3445,7 @@ public final Disposable subscribe(Consumer<? super T> onSuccess) {
34453445
* @return a {@link Disposable} reference with which the caller can stop receiving items before
34463446
* the Maybe has finished sending them
34473447
* @see <a href="http://reactivex.io/documentation/operators/subscribe.html">ReactiveX operators documentation: Subscribe</a>
3448-
* @throws IllegalArgumentException
3448+
* @throws NullPointerException
34493449
* if {@code onSuccess} is null, or
34503450
* if {@code onError} is null
34513451
*/
@@ -3472,7 +3472,7 @@ public final Disposable subscribe(Consumer<? super T> onSuccess, Consumer<? supe
34723472
* Maybe
34733473
* @return a {@link Disposable} reference with which the caller can stop receiving items before
34743474
* the Maybe has finished sending them
3475-
* @throws IllegalArgumentException
3475+
* @throws NullPointerException
34763476
* if {@code onSuccess} is null, or
34773477
* if {@code onError} is null, or
34783478
* if {@code onComplete} is null

src/main/java/io/reactivex/Observable.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7420,7 +7420,7 @@ public final <R> Observable<R> flatMapSingle(Function<? super T, ? extends Singl
74207420
* {@link Consumer} to execute for each item.
74217421
* @return
74227422
* a Disposable that allows cancelling an asynchronous sequence
7423-
* @throws IllegalArgumentException
7423+
* @throws NullPointerException
74247424
* if {@code onNext} is null
74257425
* @throws RuntimeException
74267426
* if the ObservableSource calls {@code onError}
@@ -10059,7 +10059,7 @@ public final Disposable subscribe(Consumer<? super T> onNext) {
1005910059
* @return a {@link Disposable} reference with which the caller can stop receiving items before
1006010060
* the ObservableSource has finished sending them
1006110061
* @see <a href="http://reactivex.io/documentation/operators/subscribe.html">ReactiveX operators documentation: Subscribe</a>
10062-
* @throws IllegalArgumentException
10062+
* @throws NullPointerException
1006310063
* if {@code onNext} is null, or
1006410064
* if {@code onError} is null
1006510065
*/
@@ -10086,7 +10086,7 @@ public final Disposable subscribe(Consumer<? super T> onNext, Consumer<? super T
1008610086
* ObservableSource
1008710087
* @return a {@link Disposable} reference with which the caller can stop receiving items before
1008810088
* the ObservableSource has finished sending them
10089-
* @throws IllegalArgumentException
10089+
* @throws NullPointerException
1009010090
* if {@code onNext} is null, or
1009110091
* if {@code onError} is null, or
1009210092
* if {@code onComplete} is null
@@ -10118,7 +10118,7 @@ public final Disposable subscribe(Consumer<? super T> onNext, Consumer<? super T
1011810118
* the {@code Consumer} that receives the upstream's Disposable
1011910119
* @return a {@link Disposable} reference with which the caller can stop receiving items before
1012010120
* the ObservableSource has finished sending them
10121-
* @throws IllegalArgumentException
10121+
* @throws NullPointerException
1012210122
* if {@code onNext} is null, or
1012310123
* if {@code onError} is null, or
1012410124
* if {@code onComplete} is null

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2444,7 +2444,7 @@ public final Disposable subscribe() {
24442444
* (whichever is not null)
24452445
* @return a {@link Disposable} reference can request the {@link Single} stop work.
24462446
* @see <a href="http://reactivex.io/documentation/operators/subscribe.html">ReactiveX operators documentation: Subscribe</a>
2447-
* @throws IllegalArgumentException
2447+
* @throws NullPointerException
24482448
* if {@code onCallback} is null
24492449
*/
24502450
@SchedulerSupport(SchedulerSupport.NONE)
@@ -2490,7 +2490,7 @@ public final Disposable subscribe(Consumer<? super T> onSuccess) {
24902490
* Single
24912491
* @return a {@link Disposable} reference can request the {@link Single} stop work.
24922492
* @see <a href="http://reactivex.io/documentation/operators/subscribe.html">ReactiveX operators documentation: Subscribe</a>
2493-
* @throws IllegalArgumentException
2493+
* @throws NullPointerException
24942494
* if {@code onSuccess} is null, or
24952495
* if {@code onError} is null
24962496
*/

0 commit comments

Comments
 (0)