项目管理
文章平均质量分 87
袁先生的博客
智来科技(大连)有限公司
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ant打war包过程
Ant 相关的介绍我就不详述了,网上这方面介绍还是比较多的,下面我就用一个简单的 web 应用做示例。 附件 anttest.rar 包里面是一个简单的登陆应用,输入用户和密码跳转成功页面并显示输入的值,这个工程是用 myeclispe 写的,下面我就模拟实现 myeclipse 的 tomcat 发布 web 应用,将这个应用打包到 tomcat 的 webapps 目录下。 1.构建a原创 2012-06-29 15:02:29 · 2076 阅读 · 0 评论 -
PMD规则之Controversial Rules
UnnecessaryConstructor: This rule detects when a constructor is not necessary; i.e., when there's only one constructor, it's public, has an empty body, and takes no arguments. 翻译 非必要的构造器:本规则检查不必要的原创 2012-08-30 14:20:13 · 2222 阅读 · 0 评论 -
PMD规则
Tom Copeland 的 PMD 是一个开源(BSD 许可)工具,它分析 Java 源代码,找出潜在的 bug。在一般意义上来说,它与 FindBugs 和 Lint4j 这类工具类似。但是,所有这些工具找出的 bug 各不相同,所以在给定代码基址上把这些工具都运行一遍很有好处。在本文中,我将解释如何使用 PMD,并展示可以从 PMD 中获得什么。本文将介绍 PMD 的命令行界面。您也可以把原创 2012-08-30 13:16:10 · 4278 阅读 · 1 评论 -
PMD校验规则总结
括号使用规则 If表达式必须使用{},无论有多少语句 错误实例: public class Foo { public void bar() { int x = 0; if (foo) x++;//if(foo){x++;} } } While循环必须使用{},无论有多少语句 错误写法示意:原创 2012-08-30 13:13:33 · 1860 阅读 · 0 评论 -
PMD规则之Basic Rules
EmptyCatchBlock: Empty Catch Block finds instances where an exception is caught, but nothing is done. In most circumstances, this swallows an exception which should either be acted on or reported. 翻译翻译 2012-08-30 17:59:44 · 2270 阅读 · 0 评论 -
PMD规则之Clone Implementation Rules
· ProperCloneImplementation: Object clone() should be implemented with super.clone(). 翻译 适当的克隆实现:对象的clone()方法中应该包含super.clone()实现 · CloneThrowsCloneNotSupportedException: The method clone() s翻译 2012-08-30 18:00:59 · 1354 阅读 · 0 评论 -
PMD规则之Braces Rules
· IfStmtsMustUseBraces: Avoid using if statements without using curly braces. 翻译 if块必须用括号:避免使用if块时不使用花括号{} · WhileLoopsMustUseBraces: Avoid using 'while' statements without using curly braces翻译 2012-08-30 18:00:26 · 1024 阅读 · 0 评论
分享