Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-36410

Replace anonymous classes with lambda expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • Examples, Spark Core, SQL
    • None

    Description

      Anonymous classes can be replaced with lambda expressions in Java code, for example

      before

      new Thread(new Runnable() {
          @Override
          public void run() {
            // run thread
          }
        });
      

      after

      new Thread(() -> {
          // run thread
        });
      

      Attachments

        Activity

          People

            LuciferYang Yang Jie
            LuciferYang Yang Jie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: