⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 longparameterlistrule.java

📁 检查Java程序漏洞
💻 JAVA
字号:
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html*/package net.sourceforge.pmd.rules.design;import net.sourceforge.pmd.ast.ASTFormalParameter;import net.sourceforge.pmd.ast.ASTFormalParameters;/** * This rule detects an abnormally long parameter list. * Note:  This counts Nodes, and not necessarily parameters, * so the numbers may not match up.  (But topcount and sigma * should work.) */public class LongParameterListRule extends ExcessiveNodeCountRule {    public LongParameterListRule() {        super(ASTFormalParameters.class);    }    // Count these nodes, but no others.    public Object visit(ASTFormalParameter node, Object data) {        return new Integer(1);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -