All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.puppycrawl.tools.checkstyle.meta.checks.coding.NoFinalizerCheck.xml Maven / Gradle / Ivy

Go to download

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>&lt;div&gt;
 Checks that there is no method {@code finalize} with zero parameters.
 &lt;/div&gt;

 &lt;p&gt;
 See
 &lt;a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#finalize()"&gt;
 Object.finalize()&lt;/a&gt;
 &lt;/p&gt;

 &lt;p&gt;
 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, &amp;#167;8.
 &lt;/p&gt;</description>
         <message-keys>
            <message-key key="avoid.finalizer.method"/>
         </message-keys>
      </check>
   </module>
</checkstyle-metadata>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy