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

Replace javac's Filter with Predicate (and lambdas)

XMLWordPrintable

    • b20

      Javac defines this functional interface:

      public interface Filter<T> {
          boolean accepts(T t);
      }

      This has now become a duplicate of java.util.function.Predicate; javac should be refactored to use the JDK functional interface instead, and to use lambdas instead of anonymous inner classes.

            gli Guoxiong Li
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: