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 1515 */
1616package rx .operators ;
1717
18- import java .util .concurrent .atomic .AtomicBoolean ;
19-
20- import rx .Observable ;
21- import rx .Observable .OnSubscribeFunc ;
2218import rx .Observable .Operator ;
23- import rx .Observer ;
2419import rx .Subscriber ;
25- import rx .Subscription ;
2620import rx .functions .Func1 ;
2721
2822/**
@@ -40,8 +34,9 @@ public OperatorAll(Func1<? super T, Boolean> predicate) {
4034
4135 @ Override
4236 public Subscriber <? super T > call (final Subscriber <? super Boolean > child ) {
43- Subscriber s = new Subscriber <T >() {
37+ return new Subscriber <T >(child ) {
4438 boolean done ;
39+
4540 @ Override
4641 public void onNext (T t ) {
4742 boolean result = predicate .call (t );
@@ -67,7 +62,5 @@ public void onCompleted() {
6762 }
6863 }
6964 };
70- child .add (s );
71- return s ;
7265 }
7366}
You can’t perform that action at this time.
0 commit comments