File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
src/main/java/rx/internal/operators Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,10 @@ public OnSubscribeAction(State<T> state) {
90
90
public void call (final Subscriber <? super T > s ) {
91
91
if (state .casObserverRef (null , s )) {
92
92
s .add (Subscriptions .create (new Action0 () {
93
+ @ SuppressWarnings ("unchecked" )
93
94
@ Override
94
95
public void call () {
95
- state .observerRef = Observers . empty () ;
96
+ state .observerRef = EMPTY_OBSERVER ;
96
97
}
97
98
}));
98
99
boolean win = false ;
@@ -184,4 +185,25 @@ public void onNext(T t) {
184
185
emit (state .nl .next (t ));
185
186
}
186
187
}
188
+
189
+ @ SuppressWarnings ("rawtypes" )
190
+ private final static Observer EMPTY_OBSERVER = new Observer () {
191
+
192
+ @ Override
193
+ public void onCompleted () {
194
+
195
+ }
196
+
197
+ @ Override
198
+ public void onError (Throwable e ) {
199
+
200
+ }
201
+
202
+ @ Override
203
+ public void onNext (Object t ) {
204
+
205
+ }
206
+
207
+ };
208
+
187
209
}
You can’t perform that action at this time.
0 commit comments