src/solaris/classes/sun/awt/X11/XDataTransferer.java
Print this page
*** 43,52 ****
--- 43,53 ----
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Iterator;
+ import java.util.LinkedHashSet;
import java.util.List;
import javax.imageio.ImageIO;
import javax.imageio.ImageTypeSpecifier;
import javax.imageio.ImageWriter;
*** 328,339 ****
* To meet this requirement we check if the passed native format constitutes
* a valid MIME and return a list of flavors to which the data in this MIME
* type can be translated by the Data Transfer subsystem.
*/
@Override
! public List<DataFlavor> getPlatformMappingsForNative(String nat) {
! List<DataFlavor> flavors = new ArrayList<>();
if (nat == null) {
return flavors;
}
--- 329,340 ----
* To meet this requirement we check if the passed native format constitutes
* a valid MIME and return a list of flavors to which the data in this MIME
* type can be translated by the Data Transfer subsystem.
*/
@Override
! public LinkedHashSet<DataFlavor> getPlatformMappingsForNative(String nat) {
! LinkedHashSet<DataFlavor> flavors = new LinkedHashSet<>();
if (nat == null) {
return flavors;
}
*** 390,401 ****
* To meet this requirement we return a list of formats that represent
* MIME types to which the data in this flavor can be translated by the Data
* Transfer subsystem.
*/
@Override
! public List<String> getPlatformMappingsForFlavor(DataFlavor df) {
! List<String> natives = new ArrayList<>(1);
if (df == null) {
return natives;
}
--- 391,402 ----
* To meet this requirement we return a list of formats that represent
* MIME types to which the data in this flavor can be translated by the Data
* Transfer subsystem.
*/
@Override
! public LinkedHashSet<String> getPlatformMappingsForFlavor(DataFlavor df) {
! LinkedHashSet<String> natives = new LinkedHashSet<>(1);
if (df == null) {
return natives;
}