Skip to content

Commit 54a5414

Browse files
committed
test fix
1 parent 99e094c commit 54a5414

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/jdk/javax/swing/JSplitPane/TestSplitPaneCompResize.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public class TestSplitPaneCompResize {
5252
private static JFrame frame;
5353
private JSplitPane outer;
5454
private static JButton leftOneTouchButton;
55-
private static JButton rightOneTouchButton;
5655
private static volatile Point leftBtnPos;
5756
private static volatile boolean resized;
5857

@@ -132,7 +131,7 @@ public static void main(String[] s) throws Exception {
132131
robot.delay(1000);
133132

134133
if (!resized) {
135-
throw new RuntimeException("ComponetResized not called");
134+
throw new RuntimeException("ComponentResized not called");
136135
}
137136
} finally {
138137
SwingUtilities.invokeAndWait(() -> {
@@ -167,7 +166,7 @@ protected JButton createLeftOneTouchButton() {
167166
}
168167

169168
protected JButton createRightOneTouchButton() {
170-
rightOneTouchButton = super.createRightOneTouchButton();
169+
JButton rightOneTouchButton = super.createRightOneTouchButton();
171170
return rightOneTouchButton;
172171
}
173172
}

0 commit comments

Comments
 (0)