added example
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@547 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -6,14 +6,18 @@ These are new ones for the next release
|
||||
</description>
|
||||
|
||||
<rule name="UnusedFormalParameter"
|
||||
message="Avoid unused formal paramters such as ''{0}''"
|
||||
message="Avoid unused formal parameters such as ''{0}''"
|
||||
class="net.sourceforge.pmd.rules.UnusedFormalParameterRule">
|
||||
<description>
|
||||
Complete this description
|
||||
Avoid passing parameters to methods and then not using those parameters.
|
||||
</description>
|
||||
|
||||
<example>
|
||||
<![CDATA[
|
||||
public class Foo {
|
||||
private void bar(String howdy) {
|
||||
// howdy is not used
|
||||
}
|
||||
]]>
|
||||
</example>
|
||||
</rule>
|
||||
|
Reference in New Issue
Block a user