Other |
---|
1.4.0 betaFixed |
Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
DataFlavor.selectBestFlavor is not returning the same dataflavor every time when the same list of dataflavors are passed. When the order of DataFlavors in the list is changed the first encountered text dataflavor is returned, so the best dataflavor is not the same always, even if the same list of dataflavors are passed each time. (for eg: dataflavor[] dfs1 = { DataFlavor.string, DataFlavor.plaintext, enrich} dataflavor[] dfs2 = { enrich,DataFlavor.string,DataFlavor.plaintext} selectBestTextFlavor(dfs1) returns string flavor. selectBestTextFlavor(dfs2) returns enrich.
|