RFR: 8358813: JPasswordField identifies spaces in password via delete shortcuts [v3]
Alexey Ivanov
aivanov at openjdk.org
Wed Aug 6 12:44:08 UTC 2025
On Wed, 6 Aug 2025 00:05:15 GMT, Jeremy Wood <duke at openjdk.org> wrote:
>> test/jdk/javax/swing/JPasswordField/PasswordFieldInputMapWordTest.java line 81:
>>
>>> 79: * These are all the actions with "word" in their field name.
>>> 80: */
>>> 81: static Collection<String> wordActions = new TreeSet<>(Arrays.asList(
>>
>> Would `Set.of` do the job?
>>
>> Perhaps, `List.of` would be as good.
>
> OK, this is updated to Set.of
Thanks! Using `Set` ensures there are no duplicates in the list.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25688#discussion_r2257026346
More information about the client-libs-dev
mailing list