File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
rxjava-core/src/main/java/rx/concurrency Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,8 @@ private void setTimer(Timer timer) {
87
87
}
88
88
89
89
@ Override
90
- public void actionPerformed (@ SuppressWarnings ("unused" ) ActionEvent e ) {
91
- if (timer != null ) {
92
- timer .stop ();
93
- }
90
+ public void actionPerformed (ActionEvent e ) {
91
+ timer .stop ();
94
92
sub .set (action .call (SwingScheduler .this , state ));
95
93
}
96
94
}
@@ -112,7 +110,7 @@ public void call() {
112
110
}
113
111
});
114
112
}
115
-
113
+
116
114
public static class UnitTest {
117
115
@ Test
118
116
public void testNestedActions () throws InterruptedException , InvocationTargetException {
@@ -155,10 +153,10 @@ public void call() {
155
153
156
154
scheduler .schedule (thirdAction );
157
155
EventQueue .invokeAndWait (new Runnable () {
158
- @ Override
159
- public void run () {
160
- // nothing to do, we're just waiting here for the event queue to be emptied
161
- }
156
+ @ Override
157
+ public void run () {
158
+ // nothing to do, we're just waiting here for the event queue to be emptied
159
+ }
162
160
});
163
161
164
162
inOrder .verify (thirdStepStart , times (1 )).call ();
You can’t perform that action at this time.
0 commit comments