src/share/classes/sun/awt/datatransfer/DataTransferer.java
Print this page
@@ -2903,17 +2903,17 @@
UNKNOWN_OBJECT_LOSES);
if (comp != 0) {
return comp;
}
-// if (flavor1.isFlavorTextType()) {
-// return 1;
-// }
-//
-// if (flavor2.isFlavorTextType()) {
-// return -1;
-// }
+ if (flavor1.isFlavorTextType()) {
+ return 1;
+ }
+
+ if (flavor2.isFlavorTextType()) {
+ return -1;
+ }
// Next, look for application/x-java-* types. Prefer unknown
// MIME types because if the user provides his own data flavor,
// it will likely be the most descriptive one.
comp = compareIndices(exactTypes, mimeType1, mimeType2,