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

Replace FreeTypeListeners with lambdas

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9
    • tools

      The class Infer.Inference context defines this callback function:

      void addFreeTypeListener(List<Type> types, FreeTypeListener ftl) {
         freeTypeListeners.put(ftl, freeVarsIn(types));
      }

      where FreeTypeListener is defined as follows:

      interface FreeTypeListener {
         void typesInferred(InferenceContext inferenceContext);
      }

      This is a functional interfaces, and usages of the callback should be tweaked to use lambdas instead of anonymous inner classes.

            Unassigned Unassigned
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: