PMD规则之Clone Implementation Rules
来源:互联网 发布:行星减速器传动比算法 编辑:程序博客网 时间:2024/05/02 04:22
· 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
- asp.net中常用的26个优化性能的方法
- 如何查看电脑关机和开机的时间
- PMD规则之Braces Rules
- 微软.NET各子技术领域之应用前景
- Cache 好处及其限制
- PMD规则之Clone Implementation Rules
- PMD规则之Code Size Rules
- Java线程:概念与原理
- PMD规则之Controversial Rules
- PMD规则之Coupling Rules
- PMD规则之Design Rules
- 如何连接access数据库不用ODBC
- 在PropertySheet中插入一PropertyPage页
- sql临时表:SQL Server中的临时表和表变量