PMD规则之Clone Implementation Rules
来源:互联网 发布:ubuntu 终端 中文 编辑:程序博客网 时间:2024/05/23 02:06
· ProperCloneImplementation: Object clone() should be implemented with super.clone().
翻译 适当的克隆实现:对象的clone()方法中应该包含super.clone()实现
· CloneThrowsCloneNotSupportedException: The method clone() should throw a CloneNotSupportedException.
翻译 克隆方法要抛出不支持克隆异常:clone()方法应该抛出CloneNotSupportedException
· CloneMethodMustImplementCloneable: The method clone() should only be implemented if the class implements the Cloneable interface with the exception of a final method that only throws CloneNotSupportedException.
翻译 克隆方法必须实现Cloneable接口:如果类实现Cloneable接口,clone()方法应该被实现为一个final的方法并且只抛出CloneNotSupportedException的异常- PMD规则之Clone Implementation Rules
- PMD规则之Clone Implementation Rules
- PMD规则之Basic Rules
- PMD规则之Braces Rules
- PMD规则之Controversial Rules
- PMD规则之Coupling Rules
- PMD规则之Design Rules
- PMD规则之Finalizer Rules
- PMD规则之J2EE Rules
- PMD规则之JavaBean Rules
- PMD规则之Junit Rules
- PMD规则之Migration Rules
- PMD规则之Naming Rules
- PMD规则之Optimization Rules
- PMD规则之Controversial Rules
- PMD规则之Basic Rules
- PMD规则之Braces Rules
- PMD规则之Design Rules
- PMD规则之Basic Rules
- shell 数组建立及使用技巧
- HDU 3826 Squarefree number
- PMD规则之Braces Rules
- 发送邮件的几个函数
- PMD规则之Clone Implementation Rules
- 浏览器对Script下载的非并行处理再说明
- jacob 生成pdf问题
- Java实现结构体,让字节流封送简单起来
- 安装Visual Studio SP1 后生成时出现"FindRibbons"加载失败
- 缓存--自定义缓存依赖、自定义输出缓存、缓存依赖SQL SERVER 2005与2008
- 【字符串】字符串拷贝和长度
- C语言--static
- Session的生命周期(很详细)