On Fri, 1 Aug 2025 02:26:44 GMT, Jeremy Wood <d...@openjdk.org> wrote:
>> There were a few action bindings available in JPasswordFields in Aqua that >> let you identify the boundaries of words. >> >> This came to my attention while looking at the related work >> https://github.com/openjdk/jdk/pull/25443 . In that PR we said we should >> iterate across all available L&Fs, so this PR copies that same approach. >> (The original complaint only focused on Aqua, though.) > > Jeremy Wood has updated the pull request incrementally with one additional > commit since the last revision: > > Update > test/jdk/javax/swing/JPasswordField/PasswordFieldInputMapWordTest.java > > Co-authored-by: DamonGuy <damon.ngu...@oracle.com> 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. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/25688#discussion_r2255241147