Skip to content

Commit

Permalink
Remove @nonnull annotations for functions with void return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Korolev committed May 27, 2022
1 parent 23c9f4d commit d184e40
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/io/reactivex/rxjava3/core/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -5520,7 +5520,6 @@ public final T blockingFirst(@NonNull T defaultItem) {
* @see #blockingForEach(Consumer, int)
*/
@SchedulerSupport(SchedulerSupport.NONE)
@NonNull
public final void blockingForEach(@NonNull Consumer<? super T> onNext) {
blockingForEach(onNext, bufferSize());
}
Expand Down Expand Up @@ -5560,7 +5559,6 @@ public final void blockingForEach(@NonNull Consumer<? super T> onNext) {
* @see #subscribe(Consumer)
*/
@SchedulerSupport(SchedulerSupport.NONE)
@NonNull
public final void blockingForEach(@NonNull Consumer<? super T> onNext, int capacityHint) {
Objects.requireNonNull(onNext, "onNext is null");
Iterator<T> it = blockingIterable(capacityHint).iterator();
Expand Down Expand Up @@ -12036,7 +12034,6 @@ public final Observable<T> retryWhen(
* @throws NullPointerException if {@code observer} is {@code null}
*/
@SchedulerSupport(SchedulerSupport.NONE)
@NonNull
public final void safeSubscribe(@NonNull Observer<? super T> observer) {
Objects.requireNonNull(observer, "observer is null");
if (observer instanceof SafeObserver) {
Expand Down

0 comments on commit d184e40

Please sign in to comment.