Skip to content

Commit

Permalink
Allow nullable acc. type on Observable.collect too (supplement #7590)
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Aug 23, 2023
1 parent 9ebf221 commit a57ad01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/rxjava3/core/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -16985,7 +16985,7 @@ public final TestObserver<T> test(boolean dispose) { // NoPMD
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.NONE)
@NonNull
public final <@NonNull R, @NonNull A> Single<R> collect(@NonNull Collector<? super T, A, R> collector) {
public final <@NonNull R, @Nullable A> Single<R> collect(@NonNull Collector<? super T, A, R> collector) {
Objects.requireNonNull(collector, "collector is null");
return RxJavaPlugins.onAssembly(new ObservableCollectWithCollectorSingle<>(this, collector));
}
Expand Down

0 comments on commit a57ad01

Please sign in to comment.