File tree Expand file tree Collapse file tree 6 files changed +12
-0
lines changed
src/main/java/io/reactivex/processors Expand file tree Collapse file tree 6 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ public boolean hasComplete() {
138
138
}
139
139
140
140
@ Override
141
+ @ Nullable
141
142
public Throwable getThrowable () {
142
143
return subscribers .get () == TERMINATED ? error : null ;
143
144
}
@@ -244,6 +245,7 @@ public boolean hasValue() {
244
245
* <p>The method is thread-safe.
245
246
* @return a single value the Subject currently has or null if no such value exists
246
247
*/
248
+ @ Nullable
247
249
public T getValue () {
248
250
return subscribers .get () == TERMINATED ? value : null ;
249
251
}
Original file line number Diff line number Diff line change @@ -348,6 +348,7 @@ public boolean hasSubscribers() {
348
348
}
349
349
350
350
@ Override
351
+ @ Nullable
351
352
public Throwable getThrowable () {
352
353
Object o = value .get ();
353
354
if (NotificationLite .isError (o )) {
@@ -361,6 +362,7 @@ public Throwable getThrowable() {
361
362
* <p>The method is thread-safe.
362
363
* @return a single value the BehaviorProcessor currently has or null if no such value exists
363
364
*/
365
+ @ Nullable
364
366
public T getValue () {
365
367
Object o = value .get ();
366
368
if (NotificationLite .isComplete (o ) || NotificationLite .isError (o )) {
Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ public boolean hasSubscribers() {
261
261
}
262
262
263
263
@ Override
264
+ @ Nullable
264
265
public Throwable getThrowable () {
265
266
if (subscribers .get () == TERMINATED ) {
266
267
return error ;
Original file line number Diff line number Diff line change @@ -354,6 +354,7 @@ public boolean hasSubscribers() {
354
354
}
355
355
356
356
@ Override
357
+ @ Nullable
357
358
public Throwable getThrowable () {
358
359
ReplayBuffer <T > b = buffer ;
359
360
if (b .isDone ()) {
@@ -510,6 +511,7 @@ interface ReplayBuffer<T> {
510
511
511
512
int size ();
512
513
514
+ @ Nullable
513
515
T getValue ();
514
516
515
517
T [] getValues (T [] array );
@@ -598,6 +600,7 @@ public void trimHead() {
598
600
}
599
601
600
602
@ Override
603
+ @ Nullable
601
604
public T getValue () {
602
605
int s = size ;
603
606
if (s == 0 ) {
@@ -1091,6 +1094,7 @@ public void complete() {
1091
1094
}
1092
1095
1093
1096
@ Override
1097
+ @ Nullable
1094
1098
public T getValue () {
1095
1099
TimedNode <T > h = head ;
1096
1100
Original file line number Diff line number Diff line change 13
13
14
14
package io .reactivex .processors ;
15
15
16
+ import io .reactivex .annotations .Nullable ;
16
17
import org .reactivestreams .*;
17
18
18
19
import io .reactivex .internal .util .*;
@@ -187,6 +188,7 @@ public boolean hasThrowable() {
187
188
}
188
189
189
190
@ Override
191
+ @ Nullable
190
192
public Throwable getThrowable () {
191
193
return actual .getThrowable ();
192
194
}
Original file line number Diff line number Diff line change @@ -457,6 +457,7 @@ public boolean hasSubscribers() {
457
457
}
458
458
459
459
@ Override
460
+ @ Nullable
460
461
public Throwable getThrowable () {
461
462
if (done ) {
462
463
return error ;
You can’t perform that action at this time.
0 commit comments