Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8152192

Java Access Bridge, convert callables and lambdas to method references

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 7u6, 8, 9
    • client-libs

      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.

            ptbrunet Pete Brunet (Inactive)
            ptbrunet Pete Brunet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: