<Swing Dev> RFR: 8271456: Avoid looking up standard charsets in "java.desktop" module [v2]
Sergey Bylokhov
serb at openjdk.java.net
Tue Aug 3 22:06:29 UTC 2021
On Tue, 3 Aug 2021 21:54:08 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>> it is aligned already, the StandardCharsets.UTF_8 is parameter of "new String()", not the getTransferData.
>
> Ah, right!
> But it's confusing: it looks as if `StandardCharsets.UTF_8` is a parameter to `getTransferData`. Maybe avoid breaking the line and leave `UTF_8` on the same line? If you import `UTF_8` and `UTF_16LE` statically, line break is unnecessary.
I am fine to do that, if there are no objections I can change the whole fix.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4951
More information about the swing-dev
mailing list