src/share/classes/sun/awt/datatransfer/DataTransferer.java

Print this page

        

*** 68,93 **** import java.security.PrivilegedAction; import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; import java.security.ProtectionDomain; ! import java.util.AbstractMap; ! import java.util.ArrayList; ! import java.util.Arrays; ! import java.util.Collections; ! import java.util.Comparator; ! import java.util.HashMap; ! import java.util.HashSet; ! import java.util.Iterator; ! import java.util.List; ! import java.util.Map; ! import java.util.SortedMap; ! import java.util.SortedSet; ! import java.util.Set; ! import java.util.Stack; ! import java.util.TreeMap; ! import java.util.TreeSet; import sun.util.logging.PlatformLogger; import sun.awt.AppContext; import sun.awt.SunToolkit; --- 68,78 ---- import java.security.PrivilegedAction; import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; import java.security.ProtectionDomain; ! import java.util.*; import sun.util.logging.PlatformLogger; import sun.awt.AppContext; import sun.awt.SunToolkit;
*** 2265,2285 **** /** * Returns platform-specific mappings for the specified native. * If there are no platform-specific mappings for this native, the method * returns an empty <code>List</code>. */ ! public List<DataFlavor> getPlatformMappingsForNative(String nat) { ! return new ArrayList<>(); } /** * Returns platform-specific mappings for the specified flavor. * If there are no platform-specific mappings for this flavor, the method * returns an empty <code>List</code>. */ ! public List<String> getPlatformMappingsForFlavor(DataFlavor df) { ! return new ArrayList<>(); } /** * A Comparator which includes a helper function for comparing two Objects * which are likely to be keys in the specified Map. --- 2250,2270 ---- /** * Returns platform-specific mappings for the specified native. * If there are no platform-specific mappings for this native, the method * returns an empty <code>List</code>. */ ! public LinkedHashSet<DataFlavor> getPlatformMappingsForNative(String nat) { ! return new LinkedHashSet<>(); } /** * Returns platform-specific mappings for the specified flavor. * If there are no platform-specific mappings for this flavor, the method * returns an empty <code>List</code>. */ ! public LinkedHashSet<String> getPlatformMappingsForFlavor(DataFlavor df) { ! return new LinkedHashSet<>(); } /** * A Comparator which includes a helper function for comparing two Objects * which are likely to be keys in the specified Map.