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

Mark overriden methods with `@override` annotation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 3.4.0
    • Spark Core
    • None

    Description

      An overridden method from an interface or abstract class must be marked with @Override annotation. To accurately determine whether the overriding is successful, an @Override annotation is necessary. Meanwhile, once the method signature in the abstract class is changed, the implementation class will report a compile-time error immediately.

      Attachments

        1. override.png
          66 kB
          Bjørn Jørgensen

        Activity

          People

            dcoliversun Qian Sun
            dcoliversun Qian Sun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: