On Wed, 6 Aug 2025 00:05:15 GMT, Jeremy Wood <[email protected]> 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
