PMD规则之Unused Code Rules

来源:互联网 发布:淘宝购物车营销针对 编辑:程序博客网 时间:2024/04/26 20:02

·  UnusedPrivateField: Detects when a private field is declared and/or assigned a value, but not used.

翻译   未用的私有变量:检测到私有变量被声明或被赋值,但是未使用

·  UnusedLocalVariable: Detects when a local variable is declared and/or assigned, but not used.

翻译   未用的本地变量:检测到本地变量被声明或被赋值,但是未使用

·  UnusedPrivateMethod: Unused Private Method detects when a private method is declared but is unused.

翻译   未用的私有方法:检测到已声明但未使用的私有方法

·  UnusedFormalParameter: Avoid passing parameters to methods or constructors and then not using those parameters.

翻译   未用的常规参数:避免传递给方法或构造器不使用的参数

原创粉丝点击