Skip to content

Commit 75e7e50

Browse files
authored
Fix missing NonNull on Observable.map (#7302)
* Fix missing NonNull on Observable.map I noticed this while testing the upcoming Kotlin 1.5.30-M1 (which has improved support for type-use nullability annotations) https://youtrack.jetbrains.com/issue/KT-47833. This makes `at least match Single, but `Maybe.map` is also missing this. I suspect there are others too. * Update src/main/java/io/reactivex/rxjava3/core/Observable.java
1 parent bb814d2 commit 75e7e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10371,7 +10371,7 @@ public final <R> Observable<R> lift(@NonNull ObservableOperator<? extends R, ? s
1037110371
@CheckReturnValue
1037210372
@SchedulerSupport(SchedulerSupport.NONE)
1037310373
@NonNull
10374-
public final <R> Observable<R> map(@NonNull Function<? super T, ? extends R> mapper) {
10374+
public final <@NonNull R> Observable<R> map(@NonNull Function<? super T, ? extends R> mapper) {
1037510375
Objects.requireNonNull(mapper, "mapper is null");
1037610376
return RxJavaPlugins.onAssembly(new ObservableMap<>(this, mapper));
1037710377
}

0 commit comments

Comments
 (0)