diff options
author | Sven Gothel <[email protected]> | 2023-04-05 10:06:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-04-05 10:06:44 +0200 |
commit | 339a246403b1eee3c8dbfda89943a80c2b855c85 (patch) | |
tree | 1d4c2764844c0124cd15b77e7e0793078a4ff5cc /src/test/com | |
parent | 1eb9d91bbf5d24a02c4d9e98501ff51eb7ecdcd0 (diff) |
TestAWTCardLayoutAnimatorStartStopBug532: Suppress warnings
Diffstat (limited to 'src/test/com')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/acore/anim/TestAWTCardLayoutAnimatorStartStopBug532.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/anim/TestAWTCardLayoutAnimatorStartStopBug532.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/anim/TestAWTCardLayoutAnimatorStartStopBug532.java index 722167c33..826b2e6c7 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/anim/TestAWTCardLayoutAnimatorStartStopBug532.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/anim/TestAWTCardLayoutAnimatorStartStopBug532.java @@ -31,6 +31,7 @@ import com.jogamp.opengl.util.Animator; import com.jogamp.opengl.util.FPSAnimator; @FixMethodOrder(MethodSorters.NAME_ASCENDING) +@SuppressWarnings({ "unchecked", "rawtypes" }) public class TestAWTCardLayoutAnimatorStartStopBug532 extends UITestCase { static final String LABEL = "Label"; static final String CANVAS = "GLCanvas"; @@ -120,7 +121,8 @@ public class TestAWTCardLayoutAnimatorStartStopBug532 extends UITestCase { final JFrame frame = new JFrame(); frame.setTitle(getSimpleTestName(" - ")); frame.addWindowListener(new WindowAdapter() { - public void windowClosing(final WindowEvent e) { + @Override + public void windowClosing(final WindowEvent e) { animatorCtrl.stop(); shouldStop = true; } @@ -134,6 +136,7 @@ public class TestAWTCardLayoutAnimatorStartStopBug532 extends UITestCase { final JComboBox comboBox = new JComboBox(new String[] { LABEL, CANVAS }); comboBox.setEditable(false); comboBox.addItemListener(new ItemListener() { + @Override public void itemStateChanged(final ItemEvent evt) { final CardLayout cl = (CardLayout)(cards.getLayout()); final String newSelection = (String)evt.getItem(); @@ -193,6 +196,7 @@ public class TestAWTCardLayoutAnimatorStartStopBug532 extends UITestCase { frame.add(cards, BorderLayout.CENTER); javax.swing.SwingUtilities.invokeAndWait(new Runnable() { + @Override public void run() { frame.pack(); frame.setVisible(true); @@ -204,24 +208,28 @@ public class TestAWTCardLayoutAnimatorStartStopBug532 extends UITestCase { } } else { javax.swing.SwingUtilities.invokeAndWait(new Runnable() { + @Override public void run() { comboBox.setSelectedItem(LABEL); }}); Thread.sleep(durationPerTest/4); javax.swing.SwingUtilities.invokeAndWait(new Runnable() { + @Override public void run() { comboBox.setSelectedItem(CANVAS); }}); Thread.sleep(durationPerTest/4); javax.swing.SwingUtilities.invokeAndWait(new Runnable() { + @Override public void run() { comboBox.setSelectedItem(LABEL); }}); Thread.sleep(durationPerTest/4); javax.swing.SwingUtilities.invokeAndWait(new Runnable() { + @Override public void run() { comboBox.setSelectedItem(CANVAS); }}); @@ -229,6 +237,7 @@ public class TestAWTCardLayoutAnimatorStartStopBug532 extends UITestCase { } javax.swing.SwingUtilities.invokeAndWait(new Runnable() { + @Override public void run() { frame.setVisible(false); frame.dispose(); |