changeset 11239:18c0f5323646

8058793: Test sun/awt/datatransfer/DataFlavorComparatorTest.java fails with compilation error Reviewed-by: alexsch, azvegint Contributed-by: srinivasan.raghavan@oracle.com
author kshefov
date Wed, 14 Jan 2015 13:43:12 +0300
parents d873f6a7d16b
children 95f1c90ebb7f
files test/sun/awt/datatransfer/DataFlavorComparatorTest.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/awt/datatransfer/DataFlavorComparatorTest.java	Tue Jan 13 14:33:54 2015 -0800
+++ b/test/sun/awt/datatransfer/DataFlavorComparatorTest.java	Wed Jan 14 13:43:12 2015 +0300
@@ -29,13 +29,14 @@
 */
 
 import sun.awt.datatransfer.DataTransferer;
-
+import java.util.Comparator;
+import sun.datatransfer.DataFlavorUtil;
 import java.awt.datatransfer.DataFlavor;
 
 public class DataFlavorComparatorTest {
 
     public static void main(String[] args) {
-        DataTransferer.DataFlavorComparator comparator = new DataTransferer.DataFlavorComparator();
+        Comparator<DataFlavor> comparator = DataFlavorUtil.getDataFlavorComparator();
         DataFlavor flavor1 = DataFlavor.imageFlavor;
         DataFlavor flavor2 = DataFlavor.selectionHtmlFlavor;
         if (comparator.compare(flavor1, flavor2) == 0) {