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

Annotate.Worker should be replaced with lambdas

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b99
    • Verification:
      Not verified

      Description

      Annotate defines the following nested interface:

      public interface Worker {
              void run();
              String toString();
          }

      This is a functional interface (as toString is override-equivalent with a j.l.Object method) and its uses can be replaced with lambdas.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alundblad Andreas Lundblad (Inactive)
              Reporter:
              mcimadamore Maurizio Cimadamore
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: