KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > pmd > rules > design > LongMethodRule


1 /**
2  * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3  */

4 package net.sourceforge.pmd.rules.design;
5
6 import net.sourceforge.pmd.ast.ASTMethodDeclaration;
7
8 /**
9  * This rule detects when a method exceeds a certain
10  * threshold. i.e. if a method has more than x lines
11  * of code.
12  */

13 public class LongMethodRule extends ExcessiveLengthRule {
14     public LongMethodRule() {
15         super(ASTMethodDeclaration.class);
16     }
17 }
18
Popular Tags