On Thu, 29 Dec 2022 15:54:43 GMT, Artem Semenov <[email protected]> wrote:

> [CommonComponentAccessibility getActionsWithEnv:] defines the 
> getAccessibleActionCount method on the AccessibleAction class, however the 
> call should go through CAccessibility so that it is executed on the Event 
> Dispatch thread.
> 
> @azuev-java @mrserb @prrace please review

src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessibility.java line 530:

> 528:                 return aa.getAccessibleActionCount();
> 529:             }
> 530:         }, c);

There's a more compact way of doing this:
Suggestion:

        return invokeAndWait(aa::getAccessibleActionCount, c);

-------------

PR: https://git.openjdk.org/jdk/pull/11803

Reply via email to