Skip to content

Commit 55f3bb2

Browse files
ZacSweersakarnokd
authored andcommitted
Add missing onSubscribe null-checks to NPE docs on Flowable/Observable subscribe (#6301)
Happened to notice these today
1 parent acd5466 commit 55f3bb2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14461,7 +14461,8 @@ public final Disposable subscribe(Consumer<? super T> onNext, Consumer<? super T
1446114461
* @throws NullPointerException
1446214462
* if {@code onNext} is null, or
1446314463
* if {@code onError} is null, or
14464-
* if {@code onComplete} is null
14464+
* if {@code onComplete} is null, or
14465+
* if {@code onSubscribe} is null
1446514466
* @see <a href="http://reactivex.io/documentation/operators/subscribe.html">ReactiveX operators documentation: Subscribe</a>
1446614467
*/
1446714468
@CheckReturnValue

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12119,7 +12119,8 @@ public final Disposable subscribe(Consumer<? super T> onNext, Consumer<? super T
1211912119
* @throws NullPointerException
1212012120
* if {@code onNext} is null, or
1212112121
* if {@code onError} is null, or
12122-
* if {@code onComplete} is null
12122+
* if {@code onComplete} is null, or
12123+
* if {@code onSubscribe} is null
1212312124
* @see <a href="http://reactivex.io/documentation/operators/subscribe.html">ReactiveX operators documentation: Subscribe</a>
1212412125
*/
1212512126
@CheckReturnValue

0 commit comments

Comments
 (0)