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

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • Project Infra
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment