Skip to content

Files

Latest commit

 

History

History
19 lines (12 loc) · 616 Bytes

NoFinalize.md

File metadata and controls

19 lines (12 loc) · 616 Bytes

Pattern: Defined finalize() method

Issue: -

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.

Example configuration

<check enabled="true" class="org.scalastyle.scalariform.NoFinalizeChecker" level="warning"/>