com.puppycrawl.tools.checkstyle.meta.checks.coding.NoFinalizerCheck.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checkstyle Show documentation
Show all versions of checkstyle Show documentation
Checkstyle is a development tool to help programmers write Java code
that adheres to a coding standard
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <checkstyle-metadata> <module> <check fully-qualified-name="com.puppycrawl.tools.checkstyle.checks.coding.NoFinalizerCheck" name="NoFinalizer" parent="com.puppycrawl.tools.checkstyle.TreeWalker"> <description><div> Checks that there is no method {@code finalize} with zero parameters. </div> <p> See <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#finalize()"> Object.finalize()</a> </p> <p> Rationale: Finalizers are unpredictable, often dangerous, and generally unnecessary. Their use can cause erratic behavior, poor performance, and portability problems. For more information for the finalize method and its issues, see Effective Java: Programming Language Guide Third Edition by Joshua Bloch, &#167;8. </p></description> <message-keys> <message-key key="avoid.finalizer.method"/> </message-keys> </check> </module> </checkstyle-metadata>