Skip to content

Commit ce98326

Browse files
committed
Fix warning about using static directly in tests
1 parent c3cebe8 commit ce98326

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/org.eclipse.swt.tests/data/clipboard/ClipboardTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import javax.swing.JScrollPane;
3232
import javax.swing.JTextArea;
3333
import javax.swing.SwingUtilities;
34+
import javax.swing.WindowConstants;
3435

3536
import org.eclipse.swt.tests.junit.Test_org_eclipse_swt_dnd_Clipboard;
3637

@@ -96,7 +97,7 @@ public ClipboardTest() throws RemoteException {
9697
add(scrollPane, BorderLayout.CENTER);
9798
add(buttonPanel, BorderLayout.SOUTH);
9899

99-
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
100+
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
100101
pack();
101102
setLocationRelativeTo(null); // Center on screen
102103
setVisible(true);

0 commit comments

Comments
 (0)