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

Annotate.Worker should be replaced with lambdas

    XMLWordPrintable

Details

    • b99
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: