CPD报告代码重复。
Catching code duplication with CPD.
用CPD捕捉代码重复。
PMD's CPD: Enables discovering code duplication
PMD的CPD:帮助发现代码重复
Reducing code duplication in the data access tier.
减少数据访问层中的代码重复。
CPD: a freely available code duplication tool from the PMD team.
CPD:来自PMD小组的免费代码复制工具。
This enabled me to avoid code duplication more elegantly than I could have with a procedural language.
这使得我可以避免代码重复,从而比使用过程语言更为优雅。
There's a bit of code duplication in the Person class, but I'll leave that for a later refactoring exercise.
在person类中有一些重复的代码,但我把它留给稍后的重构练习。
Named templates are particularly useful for dividing your code into smaller chunks and avoiding code duplication.
命名模板对于将代码划分为较小的区块、避免代码内容重复非常有用。
The generic DAO pattern (also called Typesafe DAO) is critical to reducing code duplication in the data access tier.
泛型dao模式(也称为类型安全的DAO)对于减少数据访问层中的代码重复非常重要。
And just as code duplication can make a software program more difficult to maintain, so too does duplicate code in build scripts.
代码复制令软件程序更难于维护,同理,构建脚本中的复制代码也存在这样的问题。
The measure for finding duplicated code is to search for code duplication within classes and among other classes in the code base.
查找重复代码的度量方法是在代码库中的类的内部和其他类之间搜索代码重复。
You can reduce code duplication by abstracting the common behavior and including it in the generic DAO, where all users of the class will have access to the functionality.
提取通用行为并把它们包含在泛型DAO 中,让类的所有用户通过泛型 DAO访问这些功能,这样就可以减少代码重复。
By using a static analysis tool such as PMD's CPD or CheckStyle, you can determine areas of high code duplication on a continual basis as part of running an automated build.
使用诸如pmd的CPD或CheckStyle这样的静态分析工具,您能够将整个分析过程作为自动构建的一部分,持续分析,确定代码重复度高的区域。
This logic in the session bean will force the clients to always do the right thing, ensuring consistency in the application and preventing code duplication at the client side.
会话bean中的这个逻辑将强制客户机一直做正确的事情,确保应用程序中的一致性并防止客户端的代码重复。
This article's code examples (see Download to obtain the full package) show how to use these interfaces to facilitate auditing and reduce code duplication in data access objects (DAOs).
本文的代码示例(在下载中可以获得完整的代码包)演示如何使用这些接口帮助执行审计和减少数据访问对象(DAO)中的代码重复。
This article's code examples (see Download to obtain the full package) show how to use these interfaces to facilitate auditing and reduce code duplication in data access objects (DAOs).
本文的代码示例(在下载中可以获得完整的代码包)演示如何使用这些接口帮助执行审计和减少数据访问对象(DAO)中的代码重复。
应用推荐