Skip to content

Commit b34091e

Browse files
author
jmhofer
committed
fixed formatting and removed superfluous checks
1 parent f88dc4c commit b34091e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

rxjava-core/src/main/java/rx/concurrency/SwingScheduler.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,8 @@ private void setTimer(Timer timer) {
8787
}
8888

8989
@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();
9492
sub.set(action.call(SwingScheduler.this, state));
9593
}
9694
}
@@ -112,7 +110,7 @@ public void call() {
112110
}
113111
});
114112
}
115-
113+
116114
public static class UnitTest {
117115
@Test
118116
public void testNestedActions() throws InterruptedException, InvocationTargetException {
@@ -155,10 +153,10 @@ public void call() {
155153

156154
scheduler.schedule(thirdAction);
157155
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+
}
162160
});
163161

164162
inOrder.verify(thirdStepStart, times(1)).call();

0 commit comments

Comments
 (0)