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

Annotate.Worker should be replaced with lambdas

XMLWordPrintable

    • b99
    • Not verified

      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.

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

              Created:
              Updated:
              Resolved: