Skip to content

Commit b41ac3b

Browse files
hkurokawaakarnokd
authored andcommitted
Add @nonnull to the methods of Emitter (#5156)
1 parent 26eff79 commit b41ac3b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/io/reactivex/Emitter.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
*/
1313
package io.reactivex;
1414

15+
import io.reactivex.annotations.NonNull;
16+
1517
/**
1618
* Base interface for emitting signals in a push-fashion in various generator-like source
1719
* operators (create, generate).
@@ -24,13 +26,13 @@ public interface Emitter<T> {
2426
* Signal a normal value.
2527
* @param value the value to signal, not null
2628
*/
27-
void onNext(T value);
29+
void onNext(@NonNull T value);
2830

2931
/**
3032
* Signal a Throwable exception.
3133
* @param error the Throwable to signal, not null
3234
*/
33-
void onError(Throwable error);
35+
void onError(@NonNull Throwable error);
3436

3537
/**
3638
* Signal a completion.

0 commit comments

Comments
 (0)