File tree Expand file tree Collapse file tree
src/test/java/io/reactivex/rxjavafx Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,8 +38,9 @@ public RxJavaFXTest() {
3838 Observable <ActionEvent > bttnEvents =
3939 JavaFxObservable .actionEventsOf (incrementBttn );
4040
41- binding1 = JavaFxObserver .toBinding (bttnEvents .map (e -> 1 ).scan (0 ,(x , y ) -> x + y )
42- .map (Object ::toString ));
41+ binding1 = bttnEvents .map (e -> 1 ).scan (0 ,(x , y ) -> x + y )
42+ .map (Object ::toString )
43+ .to (JavaFxObserver ::toBinding );
4344
4445 incrementLabel .textProperty ().bind (binding1 );
4546
@@ -52,9 +53,10 @@ public RxJavaFXTest() {
5253 Observable <String > textInputs =
5354 JavaFxObservable .valuesOf (textInput .textProperty ());
5455
55- binding2 = JavaFxObserver . toBinding ( textInputs .observeOn (Schedulers .computation ())
56+ binding2 = textInputs .observeOn (Schedulers .computation ())
5657 .map (s -> new StringBuilder (s ).reverse ().toString ())
57- .observeOn (JavaFxScheduler .platform ()));
58+ .observeOn (JavaFxScheduler .platform ())
59+ .to (JavaFxObserver ::toBinding );
5860
5961 flippedTextLabel .textProperty ().bind (binding2 );
6062
You can’t perform that action at this time.
0 commit comments