Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-3849 Automate remaining Spark Code Style Guide rules
  3. SPARK-7976

Add style checker to disallow overriding finalize

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: Project Infra
    • Labels:
      None

      Description

      finalize() is called when the object is garbage collected, and garbage collection is not guaranteed to happen. It is therefore unwise to rely on code in finalize() method.

      See http://www.scalastyle.org/rules-0.7.0.html#org_scalastyle_scalariform_NoFinalizeChecker

        Attachments

          Activity

            People

            • Assignee:
              rxin Reynold Xin
              Reporter:
              rxin Reynold Xin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: