Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-9392

Add @FunctionalInterface annotations to all core functional interfaces

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.6.0
    • None
    • None

    Description

      The @FunctionalInterface annotation should be added to all SAM interfaces in order to prevent accidentally breaking them (as non SAMs).

      We had a case of that before for the SinkFunction which was compatible through default methods, but incompatible for users that previously instantiated that interface through a lambda.

      Attachments

        Activity

          People

            sewen Stephan Ewen
            sewen Stephan Ewen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: