|
350 | 350 | <key>com.github.sevntu.checkstyle.checks.coding.FinalizeImplementationCheck</key> |
351 | 351 | <name>Finalize Implementation Check</name> |
352 | 352 | <tag>coding</tag> |
353 | | - <description><p>This Check detects 3 most common cases of incorrect finalize() method implementation:</p><ul><li>negates effect of superclass finalize<br/><code>protected void finalize() { } <br/> protected void finalize() { doSomething(); }</code></li><li>useless (or worse) finalize<br/><code>protected void finalize() { super.finalize(); }</code></li><li>public finalize<br/><code>public void finalize() { try { doSomething(); } finally { super.finalize() } }</code></li></ul></description> |
| 353 | + <description><p>This Check detects 3 most common cases of incorrect finalize() method implementation:</p><ul><li>negates effect of superclass finalize<br/><code>protected void finalize() { } <br/> protected void finalize() { doSomething(); }</code></li><li>useless (or worse) finalize<br/><code>protected void finalize() { super.finalize(); }</code></li><li>public finalize<br/><code>public void finalize() { try { doSomething(); } finally { super.finalize() } }</code></li></ul></description> |
354 | 354 | <configKey>Checker/TreeWalker/com.github.sevntu.checkstyle.checks.coding.FinalizeImplementationCheck</configKey> |
355 | 355 | </rule> |
356 | 356 |
|
|
647 | 647 | <key>com.github.sevntu.checkstyle.checks.coding.RedundantReturnCheck</key> |
648 | 648 | <name>Redundant Return Check</name> |
649 | 649 | <tag>coding</tag> |
650 | | - <description><p>Highlight usage redundant returns inside constructors and methods with void result.</p><p>For example:</p><p>1. Non empty constructor</p><br/><code><pre>public HelloWorld(){<br/> doStuff();<br/> return;<br/>}</pre></code><p>2. Method with void result</p><br/><code><pre>public void testMethod1(){<br/> doStuff();<br/> return;<br/>}</pre></code><p>However, if your IDE does not support breakpoints on the method entry, you can allow the use of redundant returns in constructors and methodswith void result without code except for 'return;'.</p><p>For example:</p><p>1. Empty constructor</p><br/><code><pre>public HelloWorld(){<br/> return;<br/>}</pre></code><p>2. Method with void result and empty body</p><br/><code><pre>public void testMethod1(){<br/> return;<br/>}</pre></code></description> |
| 650 | + <description><p>Highlight usage redundant returns inside constructors and methods with void result.</p><p>For example:</p><p>1. Non empty constructor</p><br/><code><pre>public HelloWorld(){<br/> doStuff();<br/> return;<br/>}</pre></code><p>2. Method with void result</p><br/><code><pre>public void testMethod1(){<br/> doStuff();<br/> return;<br/>}</pre></code><p>However, if your IDE does not support breakpoints on the method entry, you can allow the use of redundant returns in constructors and methodswith void result without code except for 'return;'.</p><p>For example:</p><p>1. Empty constructor</p><br/><code><pre>public HelloWorld(){<br/> return;<br/>}</pre></code><p>2. Method with void result and empty body</p><br/><code><pre>public void testMethod1(){<br/> return;<br/>}</pre></code></description> |
651 | 651 | <configKey>Checker/TreeWalker/com.github.sevntu.checkstyle.checks.coding.RedundantReturnCheck</configKey> |
652 | 652 |
|
653 | 653 | <param key="allowReturnInEmptyMethodsAndConstructors" type="BOOLEAN"> |
|
867 | 867 | <key>com.github.sevntu.checkstyle.checks.design.StaticMethodCandidateCheck</key> |
868 | 868 | <name>Static Method Candidate</name> |
869 | 869 | <tag>design</tag> |
870 | | - <description>Check whether <code>private</code> methods should be declared as <code>static</code>.</description> |
| 870 | + <description>Check whether <code>private</code> methods should be declared as <code>static</code>.</description> |
871 | 871 | <configKey>Checker/TreeWalker/com.github.sevntu.checkstyle.checks.design.StaticMethodCandidateCheck</configKey> |
872 | 872 |
|
873 | 873 | <param key="skippedMethods" type="STRING"> |
|
917 | 917 | <key>com.github.sevntu.checkstyle.checks.design.InnerClassCheck</key> |
918 | 918 | <name>Inner Class</name> |
919 | 919 | <tag>design</tag> |
920 | | - <description>Check nested (internal) classes to be declared at the bottom of the class after all methods (fields) declaration.</description> |
| 920 | + <description>Check nested (internal) classes to be declared at the bottom of the class after all methods (fields) declaration.</description> |
921 | 921 | <configKey>Checker/TreeWalker/com.github.sevntu.checkstyle.checks.design.InnerClassCheck</configKey> |
922 | 922 | </rule> |
923 | 923 |
|
|
0 commit comments