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() {
138138 }
139139
140140 @ Override
141+ @ Nullable
141142 public Throwable getThrowable () {
142143 return subscribers .get () == TERMINATED ? error : null ;
143144 }
@@ -244,6 +245,7 @@ public boolean hasValue() {
244245 * <p>The method is thread-safe.
245246 * @return a single value the Subject currently has or null if no such value exists
246247 */
248+ @ Nullable
247249 public T getValue () {
248250 return subscribers .get () == TERMINATED ? value : null ;
249251 }
Original file line number Diff line number Diff line change @@ -348,6 +348,7 @@ public boolean hasSubscribers() {
348348 }
349349
350350 @ Override
351+ @ Nullable
351352 public Throwable getThrowable () {
352353 Object o = value .get ();
353354 if (NotificationLite .isError (o )) {
@@ -361,6 +362,7 @@ public Throwable getThrowable() {
361362 * <p>The method is thread-safe.
362363 * @return a single value the BehaviorProcessor currently has or null if no such value exists
363364 */
365+ @ Nullable
364366 public T getValue () {
365367 Object o = value .get ();
366368 if (NotificationLite .isComplete (o ) || NotificationLite .isError (o )) {
Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ public boolean hasSubscribers() {
261261 }
262262
263263 @ Override
264+ @ Nullable
264265 public Throwable getThrowable () {
265266 if (subscribers .get () == TERMINATED ) {
266267 return error ;
Original file line number Diff line number Diff line change @@ -354,6 +354,7 @@ public boolean hasSubscribers() {
354354 }
355355
356356 @ Override
357+ @ Nullable
357358 public Throwable getThrowable () {
358359 ReplayBuffer <T > b = buffer ;
359360 if (b .isDone ()) {
@@ -510,6 +511,7 @@ interface ReplayBuffer<T> {
510511
511512 int size ();
512513
514+ @ Nullable
513515 T getValue ();
514516
515517 T [] getValues (T [] array );
@@ -598,6 +600,7 @@ public void trimHead() {
598600 }
599601
600602 @ Override
603+ @ Nullable
601604 public T getValue () {
602605 int s = size ;
603606 if (s == 0 ) {
@@ -1091,6 +1094,7 @@ public void complete() {
10911094 }
10921095
10931096 @ Override
1097+ @ Nullable
10941098 public T getValue () {
10951099 TimedNode <T > h = head ;
10961100
Original file line number Diff line number Diff line change 1313
1414package io .reactivex .processors ;
1515
16+ import io .reactivex .annotations .Nullable ;
1617import org .reactivestreams .*;
1718
1819import io .reactivex .internal .util .*;
@@ -187,6 +188,7 @@ public boolean hasThrowable() {
187188 }
188189
189190 @ Override
191+ @ Nullable
190192 public Throwable getThrowable () {
191193 return actual .getThrowable ();
192194 }
Original file line number Diff line number Diff line change @@ -457,6 +457,7 @@ public boolean hasSubscribers() {
457457 }
458458
459459 @ Override
460+ @ Nullable
460461 public Throwable getThrowable () {
461462 if (done ) {
462463 return error ;
You can’t perform that action at this time.
0 commit comments