Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39735

Finalizer null fields

    XMLWordPrintable

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.x
    • Fix Version/s: 2.8.x
    • Component/s: Kernel
    • Labels:
      None

      Description

      Findbugs identifies 2 places:

      FI: Finalizer nulls fields (FI_FINALIZER_NULLS_FIELDS)

      This finalizer nulls out fields. This is usually an error, as it does not aid garbage collection, and the object is going to be garbage collected anyway.
      FI: Finalizer only nulls fields (FI_FINALIZER_ONLY_NULLS_FIELDS)

      This finalizer does nothing except null out fields. This is completely pointless, and requires that the object be garbage collected, finalized, and then garbage collected again. You should just remove the finalize method.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                dhorwitz David Horwitz
                Reporter:
                dhorwitz David Horwitz
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration