File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
rxjava-core/src/main/java/rx/operators Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package rx .operators ;
17
17
18
- import java .util .concurrent .atomic .AtomicBoolean ;
19
-
20
- import rx .Observable ;
21
- import rx .Observable .OnSubscribeFunc ;
22
18
import rx .Observable .Operator ;
23
- import rx .Observer ;
24
19
import rx .Subscriber ;
25
- import rx .Subscription ;
26
20
import rx .functions .Func1 ;
27
21
28
22
/**
@@ -40,8 +34,9 @@ public OperatorAll(Func1<? super T, Boolean> predicate) {
40
34
41
35
@ Override
42
36
public Subscriber <? super T > call (final Subscriber <? super Boolean > child ) {
43
- Subscriber s = new Subscriber <T >() {
37
+ return new Subscriber <T >(child ) {
44
38
boolean done ;
39
+
45
40
@ Override
46
41
public void onNext (T t ) {
47
42
boolean result = predicate .call (t );
@@ -67,7 +62,5 @@ public void onCompleted() {
67
62
}
68
63
}
69
64
};
70
- child .add (s );
71
- return s ;
72
65
}
73
66
}
You can’t perform that action at this time.
0 commit comments