File tree 1 file changed +5
-1
lines changed
src/main/java/rx/internal/operators
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 21
21
import rx .Observer ;
22
22
import rx .Subscriber ;
23
23
import rx .functions .Action0 ;
24
+ import rx .observers .EmptyObserver ;
24
25
import rx .observers .Subscribers ;
25
26
import rx .subjects .Subject ;
26
27
import rx .subscriptions .Subscriptions ;
50
51
*/
51
52
public class BufferUntilSubscriber <T > extends Subject <T , T > {
52
53
54
+ @ SuppressWarnings ("rawtypes" )
55
+ private final static Observer EMPTY_OBSERVER = new EmptyObserver ();
56
+
53
57
/**
54
58
* @warn create() undescribed
55
59
* @return
@@ -92,7 +96,7 @@ public void call(final Subscriber<? super T> s) {
92
96
s .add (Subscriptions .create (new Action0 () {
93
97
@ Override
94
98
public void call () {
95
- state .observerRef = Subscribers . empty () ;
99
+ state .observerRef = EMPTY_OBSERVER ;
96
100
}
97
101
}));
98
102
boolean win = false ;
You can’t perform that action at this time.
0 commit comments