-
Bug
-
Resolution: Fixed
-
P4
-
9
-
None
-
b147
-
x86
-
os_x
Suggestion to change the handling of UTF-8 characters in CDataTransfer.java
charset = new String((byte[]) transferable.getTransferData(javaTextEncodingFlavor), "UTF-8”);
should probably be changed to
import java.nio.charset.StandardCharsets;
[...]
charset = new String((byte[]) transferable.getTransferData(javaTextEncodingFlavor), StandardCharsets.UTF_8);
to avoid the unnecessary charset lookup. Suggestion is made just to improve the codebase.
charset = new String((byte[]) transferable.getTransferData(javaTextEncodingFlavor), "UTF-8”);
should probably be changed to
import java.nio.charset.StandardCharsets;
[...]
charset = new String((byte[]) transferable.getTransferData(javaTextEncodingFlavor), StandardCharsets.UTF_8);
to avoid the unnecessary charset lookup. Suggestion is made just to improve the codebase.
- relates to
-
JDK-8156099 [macosx] Drag and drop of link from web browser, DataFlavor types application/x-java-url and text/uri-list, getTransferData returns null
-
- Resolved
-