-
Enhancement
-
Resolution: Won't Fix
-
P4
-
7u6, 8, 9
Code improvement: Consider using method reference instead of a lambda, for example:
Change this
AccessibleRole role =
InvocationUtils.invokeAndWait(() -> { return ac.getAccessibleRole(); }, ac);
to this
AccessibleRole role =
InvocationUtils.invokeAndWait(ac::getAccessibleRole, ac);
And also change all places where "InvokeAndWait(new Callable ..." is used.
Change this
AccessibleRole role =
InvocationUtils.invokeAndWait(() -> { return ac.getAccessibleRole(); }, ac);
to this
AccessibleRole role =
InvocationUtils.invokeAndWait(ac::getAccessibleRole, ac);
And also change all places where "InvokeAndWait(new Callable ..." is used.