8081306: [TEST_BUG] remove imports of the internal API from some regression tests
authoryan
Thu, 18 Jun 2015 11:05:33 +0300
changeset 31442 5f0b1f795848
parent 31441 58fbcd985206
child 31443 272f4e5cbb14
8081306: [TEST_BUG] remove imports of the internal API from some regression tests Reviewed-by: serb
jdk/test/java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWindowBlockingTest.java
jdk/test/java/awt/Mouse/EnterExitEvents/FullscreenEnterEventTest.java
jdk/test/java/awt/Robot/AcceptExtraMouseButtons/AcceptExtraMouseButtons.java
jdk/test/javax/swing/JComboBox/8015300/Test8015300.java
jdk/test/javax/swing/JTableHeader/6884066/bug6884066.java
jdk/test/javax/swing/KeyboardManager/8013370/Test8013370.java
jdk/test/sun/awt/datatransfer/DataFlavorComparatorTest.java
--- a/jdk/test/java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWindowBlockingTest.java	Wed Jun 17 15:57:26 2015 +0300
+++ b/jdk/test/java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWindowBlockingTest.java	Thu Jun 18 11:05:33 2015 +0300
@@ -36,7 +36,6 @@
 import java.applet.Applet;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.lang.reflect.InvocationTargetException;
-import sun.awt.SunToolkit;
 import test.java.awt.regtesthelpers.Util;
 
 public class ActualFocusedWindowBlockingTest extends Applet {
--- a/jdk/test/java/awt/Mouse/EnterExitEvents/FullscreenEnterEventTest.java	Wed Jun 17 15:57:26 2015 +0300
+++ b/jdk/test/java/awt/Mouse/EnterExitEvents/FullscreenEnterEventTest.java	Thu Jun 18 11:05:33 2015 +0300
@@ -21,7 +21,6 @@
 * questions.
 */
 
-import sun.misc.OSEnvironment;
 import test.java.awt.regtesthelpers.Util;
 
 import javax.swing.*;
--- a/jdk/test/java/awt/Robot/AcceptExtraMouseButtons/AcceptExtraMouseButtons.java	Wed Jun 17 15:57:26 2015 +0300
+++ b/jdk/test/java/awt/Robot/AcceptExtraMouseButtons/AcceptExtraMouseButtons.java	Thu Jun 18 11:05:33 2015 +0300
@@ -38,7 +38,6 @@
 
 import java.awt.*;
 import java.awt.event.*;
-import sun.awt.SunToolkit;
 import test.java.awt.regtesthelpers.Util;
 
 public class AcceptExtraMouseButtons extends Frame {
--- a/jdk/test/javax/swing/JComboBox/8015300/Test8015300.java	Wed Jun 17 15:57:26 2015 +0300
+++ b/jdk/test/javax/swing/JComboBox/8015300/Test8015300.java	Thu Jun 18 11:05:33 2015 +0300
@@ -30,7 +30,6 @@
 import javax.swing.JFrame;
 import javax.swing.JTextField;
 import javax.swing.UIManager;
-import sun.awt.SunToolkit;
 
 import static javax.swing.SwingUtilities.invokeAndWait;
 import static javax.swing.SwingUtilities.windowForComponent;
--- a/jdk/test/javax/swing/JTableHeader/6884066/bug6884066.java	Wed Jun 17 15:57:26 2015 +0300
+++ b/jdk/test/javax/swing/JTableHeader/6884066/bug6884066.java	Thu Jun 18 11:05:33 2015 +0300
@@ -35,8 +35,6 @@
 import java.awt.*;
 import java.awt.event.InputEvent;
 
-import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
-
 public class bug6884066 {
     private static JTableHeader header;
 
--- a/jdk/test/javax/swing/KeyboardManager/8013370/Test8013370.java	Wed Jun 17 15:57:26 2015 +0300
+++ b/jdk/test/javax/swing/KeyboardManager/8013370/Test8013370.java	Thu Jun 18 11:05:33 2015 +0300
@@ -32,7 +32,6 @@
 import javax.swing.JMenuBar;
 import javax.swing.JMenuItem;
 import javax.swing.KeyStroke;
-import sun.awt.SunToolkit;
 
 import static java.awt.event.InputEvent.CTRL_DOWN_MASK;
 import static javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW;
--- a/jdk/test/sun/awt/datatransfer/DataFlavorComparatorTest.java	Wed Jun 17 15:57:26 2015 +0300
+++ b/jdk/test/sun/awt/datatransfer/DataFlavorComparatorTest.java	Thu Jun 18 11:05:33 2015 +0300
@@ -28,7 +28,6 @@
    @run main DataFlavorComparatorTest
 */
 
-import sun.awt.datatransfer.DataTransferer;
 import java.util.Comparator;
 import sun.datatransfer.DataFlavorUtil;
 import java.awt.datatransfer.DataFlavor;