Skip to content

Commit a1758c4

Browse files
Oknesifakarnokd
authored andcommitted
Add Nullable annotations for blocking methods in Completable (#6244)
1 parent 17f6e84 commit a1758c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/io/reactivex/Completable.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,7 @@ public final boolean blockingAwait(long timeout, TimeUnit unit) {
12271227
* @return the throwable if this terminated with an error, null otherwise
12281228
* @throws RuntimeException that wraps an InterruptedException if the wait is interrupted
12291229
*/
1230+
@Nullable
12301231
@CheckReturnValue
12311232
@SchedulerSupport(SchedulerSupport.NONE)
12321233
public final Throwable blockingGet() {
@@ -1250,6 +1251,7 @@ public final Throwable blockingGet() {
12501251
* @throws RuntimeException that wraps an InterruptedException if the wait is interrupted or
12511252
* TimeoutException if the specified timeout elapsed before it
12521253
*/
1254+
@Nullable
12531255
@CheckReturnValue
12541256
@SchedulerSupport(SchedulerSupport.NONE)
12551257
public final Throwable blockingGet(long timeout, TimeUnit unit) {

0 commit comments

Comments
 (0)